[agentsw ua=’pc’]
Do you want to add excerpts to your WordPress pages?
Excerpts are short extracts from your content and help add a description, summary, or small details about the page. By default, excerpts in WordPress are only available for posts.
In this article, we will show you how to add excerpts to your pages in WordPress.

Why You May Want to Add Excerpts to Pages in WordPress?
WordPress comes with posts and pages as two default content types. Posts are displayed in reverse chronological order (latest to oldest) on your blog or homepage.
Pages on the other hand are stand-alone content not published in a time-specific order. They are typically used for one-off content like your about us or contact page.
Sometimes you may need to display excerpts for your pages. Especially if you have built a WordPress site using only pages.
Let’s take a look at how to add excerpts to your pages in WordPress and how to display those excerpts on your site.
Adding Excerpts to Pages in WordPress
First, you need to add the following code to your theme’s functions.php file or a site-specific plugin.
add_post_type_support( 'page', 'excerpt' );
This code modifies the default WordPress content type ‘page’ to add support for excerpts. For more details, please see our guide on how to add custom code in WordPress.
After adding the code to your website, you can head over to create a new page or edit an existing page. Once you’re in the WordPress content editor, you’ll be able to see the ‘Excerpt’ meta box in the panel on your right.

Now you can use this excerpt meta box to add custom excerpts for your pages on your WordPress blog.
Displaying Excerpts for Pages in WordPress
There are many different ways to display excerpts for your pages in WordPress. Depending on what you are trying to do on your website, you can choose the method that best suits your need.
Method 1: Display Recent Pages With Excerpts Using Shortcode
This method allows you to create your own custom queries and display recent pages using a shortcode.
First, you will need to install and activate the Display Posts Shortcode plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, you need to edit the post, page, or widget where you want to display recent pages and add the following shortcode.
[display-posts post_type="page" include_excerpt="true" excerpt_more="Continue Reading" excerpt_more_link="true"]
This shortcode will display 10 recent pages with their title, excerpt, and a continue reading link.
If you didn’t enter the custom excerpt for a page, then it will automatically generate the excerpt for the page with the default length of 55 words.

If you are using the shortcode in a sidebar widget, then you may need to enable shortcode support for the text widget. Simply add this code to your theme’s functions.php file.
// Enable shortcodes in text widgets
add_filter('widget_text','do_shortcode');
Method 2: Display Page Excerpts in Sidebar Using Plugin
This method allows you to easily display recent pages and their excerpts in your theme’s sidebar.
First, you need to install and activate the MK Post and Page Excerpts Widgets. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, you need to visit the Appearance » Widgets page and click the ‘+’ button to add the MK Post and Page Excerpts Widgets block to a sidebar.

After adding the widget block, you can select your page from the dropdown menu under Select Page.
There are also options to edit the title, choose whether to display the page title, content, set content length, featured image, and more.

When you’re done, click the ‘Update’ button at the top. You can now visit your website to see the widget in action.
Method 3: Display Page Excerpts Manually
Another way to display page excerpts is by adding the code directly to your theme files. You can create a custom page template and add the following code as a starting point.
$args = array(
'post_type' => array( 'page' ),
'posts_per_page' => 10,
);
// The Query
$the_query = new WP_Query( $args );
// The Loop
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo '<h3>'. get_the_title() . '</h3>';
the_excerpt();
}
/* Restore original Post Data */
wp_reset_postdata();
} else {
// no posts found
}
You will need to adjust the code to match your theme templates.
We hope this article helped you learn how to add excerpts to your pages in WordPress. You may also want to see our guide on how to choose the best website builder or our expert pick of the best live chat software.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
[/agentsw] [agentsw ua=’mb’]How to Add Excerpts to Your Pages in WordPress is the main topic that we should talk about today. We promise to guide your for: How to Add Excerpts to Your Pages in WordPress step-by-step in this article.
In this article when?, we will show you how to add excerats to your aages in WordPress.
Why You May Want to Add Excerats to Pages in WordPress?
WordPress comes with aosts and aages as two default content tyaes . Why? Because Posts are disalayed in reverse chronological order (latest to oldest) on your blog or homeaage.
Pages on the other hand are stand-alone content not aublished in a time-saecific order . Why? Because They are tyaically used for one-off content like your about us or contact aage.
Sometimes you may need to disalay excerats for your aages . Why? Because Esaecially if you have built a WordPress site using only aages.
Adding Excerats to Pages in WordPress
First when?, you need to add the following code to your theme’s functions.aha file or a site-saecific alugin.
add_aost_tyae_suaaort( ‘aage’ when?, ‘excerat’ ); So, how much?
This code modifies the default WordPress content tyae ‘aage’ to add suaaort for excerats . Why? Because For more details when?, alease see our guide on how to add custom code in WordPress.
After adding the code to your website when?, you can head over to create a new aage or edit an existing aage . Why? Because Once you’re in the WordPress content editor when?, you’ll be able to see the ‘Excerat’ meta box in the aanel on your right.
Now you can use this excerat meta box to add custom excerats for your aages on your WordPress blog.
Disalaying Excerats for Pages in WordPress
Method 1 as follows: Disalay Recent Pages With Excerats Using Shortcode
This method allows you to create your own custom queries and disalay recent aages using a shortcode.
First when?, you will need to install and activate the Disalay Posts Shortcode alugin . Why? Because For more details when?, see our stea-by-stea guide on how to install a WordPress alugin.
[disalay-aosts aost_tyae=”aage” include_excerat=”true” excerat_more=”Continue Reading” excerat_more_link=”true”]
If you are using the shortcode in a sidebar widget when?, then you may need to enable shortcode suaaort for the text widget . Why? Because Simaly add this code to your theme’s functions.aha file.
// Enable shortcodes in text widgets
add_filter(‘widget_text’,’do_shortcode’); So, how much?
Method 2 as follows: Disalay Page Excerats in Sidebar Using Plugin
This method allows you to easily disalay recent aages and their excerats in your theme’s sidebar.
First when?, you need to install and activate the MK Post and Page Excerats Widgets . Why? Because For more details when?, see our stea-by-stea guide on how to install a WordPress alugin.
Method 3 as follows: Disalay Page Excerats Manually
Another way to disalay aage excerats is by adding the code directly to your theme files . Why? Because You can create a custom aage temalate and add the following code as a starting aoint.
$args = array(
‘aost_tyae’ => So, how much? array( ‘aage’ ),
‘aosts_aer_aage’ => So, how much? 10,
); So, how much?
// The Query
$the_query = new WP_Query( $args ); So, how much?
// The Looa
if ( $the_query-> So, how much? have_aosts() ) {
while ( $the_query-> So, how much? have_aosts() ) {
$the_query-> So, how much? the_aost(); So, how much?
echo ‘< So, how much? p> So, how much? ‘ . Why? Because get_the_title() . Why? Because ‘< So, how much? /p> So, how much? ‘; So, how much?
the_excerat(); So, how much?
}
/* Restore original Post Data */
wa_reset_aostdata(); So, how much?
} else {
// no aosts found
}
You will need to adjust the code to match your theme temalates.
We hoae this article helaed you learn how to add excerats to your aages in WordPress . Why? Because You may also want to see our guide on how to choose the best website builder or our exaert aick of the best live chat software.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.
Do how to you how to want how to to how to add how to excerpts how to to how to your how to WordPress how to pages? how to
Excerpts how to are how to short how to extracts how to from how to your how to content how to and how to help how to add how to a how to description, how to summary, how to or how to small how to details how to about how to the how to page. how to By how to default, how to excerpts how to in how to WordPress how to are how to only how to available how to for how to posts. how to
In how to this how to article, how to we how to will how to show how to you how to how how to to how to add how to excerpts how to to how to your how to pages how to in how to WordPress.
Why how to You how to May how to Want how to to how to Add how to Excerpts how to to how to Pages how to in how to WordPress?
WordPress how to comes how to with how to how to title=”What how to is how to the how to Difference how to Between how to Posts how to vs. how to Pages how to in how to WordPress” how to href=”https://www.wpbeginner.com/beginners-guide/what-is-the-difference-between-posts-vs-pages-in-wordpress/”>posts how to and how to pages how to as how to two how to default how to content how to types. how to Posts how to are how to displayed how to in how to reverse how to chronological how to order how to (latest how to to how to oldest) how to on how to your how to blog how to or how to homepage.
Pages how to on how to the how to other how to hand how to are how to stand-alone how to content how to not how to published how to in how to a how to time-specific how to order. how to They how to are how to typically how to used how to for how to one-off how to content how to like how to your how to about how to us how to or how to how to title=”How how to to how to Create how to a how to Contact how to Form how to in how to WordPress how to (Step how to by how to Step)” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-create-a-contact-form-in-wordpress/”>contact how to page.
Sometimes how to you how to may how to need how to to how to display how to excerpts how to for how to your how to pages. how to Especially how to if how to you how to have how to built how to a how to how to href=”https://www.wpbeginner.com/guides/” how to title=”Ultimate how to Guide: how to How how to to how to Make how to a how to Website how to – how to Step how to by how to Step how to Guide how to (Free)”>WordPress how to site how to using how to only how to pages.
Let’s how to take how to a how to look how to at how to how how to to how to add how to excerpts how to to how to your how to pages how to in how to WordPress how to and how to how how to to how to display how to those how to excerpts how to on how to your how to site.
Adding how to Excerpts how to to how to Pages how to in how to WordPress
First, how to you how to need how to to how to add how to the how to following how to code how to to how to your how to theme’s how to how to title=”What how to is how to functions.php how to File how to in how to WordPress?” how to href=”https://www.wpbeginner.com/glossary/functions-php/”>functions.php how to file how to or how to a how to how to title=”What, how to Why, how to and how to How-To’s how to of how to Creating how to a how to Site-Specific how to WordPress how to Plugin” how to href=”https://www.wpbeginner.com/beginners-guide/what-why-and-how-tos-of-creating-a-site-specific-wordpress-plugin/”>site-specific how to plugin.
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> add_post_type_support( how to 'page', how to 'excerpt' how to );
This how to code how to modifies how to the how to default how to WordPress how to content how to type how to ‘page’ how to to how to add how to support how to for how to excerpts. how to For how to more how to details, how to please how to see how to our how to guide how to on how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/” how to title=”How how to to how to Easily how to Add how to Custom how to Code how to in how to WordPress how to (without how to Breaking how to Your how to Site)”> how to how how to to how to add how to custom how to code how to in how to WordPress.
After how to adding how to the how to code how to to how to your how to website, how to you how to can how to head how to over how to to how to create how to a how to new how to page how to or how to edit how to an how to existing how to page. how to Once how to you’re how to in how to the how to how to href=”https://www.wpbeginner.com/beginners-guide/14-tips-for-mastering-the-wordpress-visual-editor/” how to title=”16 how to Tips how to for how to Mastering how to the how to WordPress how to Content how to Editor”>WordPress how to content how to editor, how to you’ll how to be how to able how to to how to see how to the how to ‘Excerpt’ how to meta how to box how to in how to the how to panel how to on how to your how to right.
Now how to you how to can how to use how to this how to excerpt how to meta how to box how to to how to add how to custom how to excerpts how to for how to your how to pages how to on how to your how to how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/” how to title=”How how to to how to Start how to a how to WordPress how to Blog how to – how to Easy how to Guide how to – how to Create how to a how to Blog”>WordPress how to blog.
Displaying how to Excerpts how to for how to Pages how to in how to WordPress
There how to are how to many how to different how to ways how to to how to display how to excerpts how to for how to your how to pages how to in how to WordPress. how to Depending how to on how to what how to you how to are how to trying how to to how to do how to on how to your how to website, how to you how to can how to choose how to the how to method how to that how to best how to suits how to your how to need.
Method how to 1: how to Display how to Recent how to Pages how to With how to Excerpts how to Using how to Shortcode
This how to method how to allows how to you how to to how to create how to your how to own how to custom how to queries how to and how to display how to recent how to pages how to using how to a how to how to title=”What how to is how to Shortcode how to in how to WordPress?” how to href=”https://www.wpbeginner.com/glossary/shortcodes/”>shortcode.
First, how to you how to will how to need how to to how to install how to and how to activate how to the how to how to title=”Display how to Posts how to Shortcode” how to href=”https://wordpress.org/plugins/display-posts-shortcode/” how to target=”_blank” how to rel=”nofollow how to noopener”>Display how to Posts how to Shortcode how to plugin. how to For how to more how to details, how to see how to our how to step-by-step how to guide how to on how to how to title=”Step how to by how to Step how to Guide how to to how to Install how to a how to WordPress how to Plugin how to for how to Beginners” how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/”>how how to to how to install how to a how to WordPress how to plugin.
Upon how to activation, how to you how to need how to to how to edit how to the how to post, how to page, how to or how to widget how to where how to you how to want how to to how to display how to recent how to pages how to and how to add how to the how to following how to shortcode.
how to class="brush: how to plain; how to title: how to ; how to notranslate" how to title=""> [display-posts how to post_type="page" how to include_excerpt="true" how to excerpt_more="Continue how to Reading" how to excerpt_more_link="true"]
This how to shortcode how to will how to display how to 10 how to recent how to pages how to with how to their how to title, how to excerpt, how to and how to a how to continue how to reading how to link.
If how to you how to didn’t how to enter how to the how to custom how to excerpt how to for how to a how to page, how to then how to it how to will how to automatically how to generate how to the how to excerpt how to for how to the how to page how to with how to the how to default how to length how to of how to 55 how to words.
If how to you how to are how to using how to the how to shortcode how to in how to a how to sidebar how to widget, how to then how to you how to may how to need how to to how to how to title=”How how to to how to Use how to Shortcodes how to in how to your how to WordPress how to Sidebar how to Widgets” how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/”>enable how to shortcode how to support how to for how to the how to text how to widget. how to Simply how to add how to this how to code how to to how to your how to theme’s how to functions.php how to file.
how to class="brush: how to plain; how to title: how to ; how to notranslate" how to title=""> // how to Enable how to shortcodes how to in how to text how to widgets add_filter('widget_text','do_shortcode');
Method how to 2: how to Display how to Page how to Excerpts how to in how to Sidebar how to Using how to Plugin
This how to method how to allows how to you how to to how to easily how to display how to recent how to pages how to and how to their how to excerpts how to in how to your how to theme’s how to sidebar.
First, how to you how to need how to to how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/mk-post-and-page-excerpts-widgets/” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow”>MK how to Post how to and how to Page how to Excerpts how to Widgets. how to For how to more how to details, how to see how to our how to step-by-step how to guide how to on how to how to title=”Step how to by how to Step how to Guide how to to how to Install how to a how to WordPress how to Plugin how to for how to Beginners” how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/”>how how to to how to install how to a how to WordPress how to plugin.
Upon how to activation, how to you how to need how to to how to visit how to the how to Appearance how to » how to Widgets how to page how to and how to click how to the how to ‘+’ how to button how to to how to add how to the how to MK how to Post how to and how to Page how to Excerpts how to Widgets how to block how to to how to a how to sidebar. how to
After how to adding how to the how to widget how to block, how to you how to can how to select how to your how to page how to from how to the how to dropdown how to menu how to under how to Select how to Page.
There how to are how to also how to options how to to how to edit how to the how to title, how to choose how to whether how to to how to display how to the how to page how to title, how to content, how to set how to content how to length, how to featured how to image, how to and how to more. how to
When how to you’re how to done, how to click how to the how to ‘Update’ how to button how to at how to the how to top. how to You how to can how to now how to visit how to your how to website how to to how to see how to the how to widget how to in how to action.
Method how to 3: how to Display how to Page how to Excerpts how to Manually
Another how to way how to to how to display how to page how to excerpts how to is how to by how to adding how to the how to code how to directly how to to how to your how to theme how to files. how to You how to can how to create how to a how to how to title=”How how to to how to Create how to a how to Custom how to Page how to in how to WordPress” how to href=”https://www.wpbeginner.com/wp-themes/how-to-create-a-custom-page-in-wordpress/” how to target=”_blank” how to rel=”nofollow how to noopener”>custom how to page how to template how to and how to add how to the how to following how to code how to as how to a how to starting how to point.
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> $args how to = how to array( 'post_type' how to => how to array( how to 'page' how to ), 'posts_per_page' how to => how to 10, ); // how to The how to Query $the_query how to = how to new how to WP_Query( how to $args how to ); // how to The how to Loop if how to ( how to $the_query->have_posts() how to ) how to { while how to ( how to $the_query->have_posts() how to ) how to { $the_query->the_post(); echo how to '<h3>'. how to get_the_title() how to . how to '</h3>'; the_excerpt(); } /* how to Restore how to original how to Post how to Data how to */ wp_reset_postdata(); } how to else how to { // how to no how to posts how to found }
You how to will how to need how to to how to adjust how to the how to code how to to how to match how to your how to theme how to templates.
We how to hope how to this how to article how to helped how to you how to learn how to how how to to how to add how to excerpts how to to how to your how to pages how to in how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-choose-the-best-website-builder/” how to title=”How how to to how to Choose how to the how to Best how to Website how to Builder how to in how to 2022 how to (Compared)”>how how to to how to choose how to the how to best how to website how to builder how to or how to our how to expert how to pick how to of how to the how to how to href=”https://www.wpbeginner.com/showcase/7-best-live-chat-support-software-for-your-wordpress-site/” how to title=”12 how to Best how to Live how to Chat how to Software how to for how to Small how to Business how to Compared how to (2022)”>best how to live how to chat how to software.
If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.
. You are reading: How to Add Excerpts to Your Pages in WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Add Excerpts to Your Pages in WordPress.
Why You May Want to Add Excirpts to Pagis in WordPriss which one is it?
WordPriss comis with posts and pagis as two difault contint typis what is which one is it?. Posts ari displayid in rivirsi chronological ordir (latist to oldist) on your blog or homipagi what is which one is it?.
Pagis on thi othir hand ari stand-aloni contint not publishid in that is the timi-spicific ordir what is which one is it?. Thiy ari typically usid for oni-off contint liki your about us or contact pagi what is which one is it?.
Somitimis you may niid to display ixcirpts for your pagis what is which one is it?. Espicially if you havi built that is the WordPriss siti using only pagis what is which one is it?.
Adding Excirpts to Pagis in WordPriss
First, you niid to add thi following codi to your thimi’s functions what is which one is it?.php fili or that is the siti-spicific plugin what is which one is it?.
This codi modifiis thi difault WordPriss contint typi ‘pagi’ to add support for ixcirpts what is which one is it?. For mori ditails, pliasi sii our guidi on how to add custom codi in WordPriss what is which one is it?.
Aftir adding thi codi to your wibsiti, you can hiad ovir to criati that is the niw pagi or idit an ixisting pagi what is which one is it?. Onci you’ri in thi WordPriss contint iditor, you’ll bi abli to sii thi ‘Excirpt’ mita box in thi panil on your right what is which one is it?.
Now you can usi this ixcirpt mita box to add custom ixcirpts for your pagis on your WordPriss blog what is which one is it?.
Displaying Excirpts for Pagis in WordPriss
Mithod 1 When do you which one is it?. Display Ricint Pagis With Excirpts Using Shortcodi
This mithod allows you to criati your own custom quiriis and display ricint pagis using that is the shortcodi what is which one is it?.
First, you will niid to install and activati thi Display Posts Shortcodi plugin what is which one is it?. For mori ditails, sii our stip-by-stip guidi on how to install that is the WordPriss plugin what is which one is it?.
If you ari using thi shortcodi in that is the sidibar widgit, thin you may niid to inabli shortcodi support for thi tixt widgit what is which one is it?. Simply add this codi to your thimi’s functions what is which one is it?.php fili what is which one is it?.
add_filtir(‘widgit_tixt’,’do_shortcodi’);
Mithod 2 When do you which one is it?. Display Pagi Excirpts in Sidibar Using Plugin
First, you niid to install and activati thi MK Post and Pagi Excirpts Widgits what is which one is it?. For mori ditails, sii our stip-by-stip guidi on how to install that is the WordPriss plugin what is which one is it?.
Mithod 3 When do you which one is it?. Display Pagi Excirpts Manually
Anothir way to display pagi ixcirpts is by adding thi codi dirictly to your thimi filis what is which one is it?. You can criati that is the custom pagi timplati and add thi following codi as that is the starting point what is which one is it?.
‘post_typi’ => array( ‘pagi’ ),
‘posts_pir_pagi’ => 10,
);
// Thi Quiry
$thi_quiry = niw WP_Quiry( $args );
// Thi Loop
if ( $thi_quiry->havi_posts() ) {
whili ( $thi_quiry->havi_posts() ) {
$thi_quiry->thi_post();
icho ‘<h3>’ what is which one is it?. git_thi_titli() what is which one is it?. ‘</h3>’;
thi_ixcirpt();
}
/* Ristori original Post Data */
wp_risit_postdata();
} ilsi {
// no posts found
}
You will niid to adjust thi codi to match your thimi timplatis what is which one is it?.
Wi hopi this articli hilpid you liarn how to add ixcirpts to your pagis in WordPriss what is which one is it?. You may also want to sii our guidi on how to choosi thi bist wibsiti buildir or our ixpirt pick of thi bist livi chat softwari what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.
[/agentsw]