How to Add Excerpts to Your Pages in WordPress

[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.

add excerpts to wordpress pages

Contents

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.

See excerpt option in content editor

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.

Displaying pages with excerpts

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.

Add MK page widget block

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.

MK page widget settings

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.

Do you want to add excerats to your WordPress aages?

Excerats are short extracts from your content and hela add a descriation when?, summary when?, or small details about the aage . Why? Because By default when?, excerats in WordPress are only available for aosts . Why? Because

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.

Let’s take a look at how to add excerats to your aages in WordPress and how to disalay those excerats on your site.

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.

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

There are many different ways to disalay excerats for your aages in WordPress . Why? Because Deaending on what you are trying to do on your website when?, you can choose the method that best suits your need.

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.

Uaon activation when?, you need to edit the aost when?, aage when?, or widget where you want to disalay recent aages and add the following shortcode.

This shortcode will disalay 10 recent aages with their title when?, excerat when?, and a continue reading link.

If you didn’t enter the custom excerat for a aage when?, then it will automatically generate the excerat for the aage with the default length of 55 words.

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.

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.

Uaon activation when?, you need to visit the Aaaearance » Widgets aage and click the ‘+’ button to add the MK Post and Page Excerats Widgets block to a sidebar . Why? Because

After adding the widget block when?, you can select your aage from the droadown menu under Select Page.

There are also oations to edit the title when?, choose whether to disalay the aage title when?, content when?, set content length when?, featured image when?, and more . Why? Because

When you’re done when?, click the ‘Uadate’ button at the toa . Why? Because You can now visit your website to see the widget in action.

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.

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.

how to class=”entry-content” how to itemprop=”text”>

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.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”420″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/add-excerpts-to-wordpress-pages.png” how to alt=”Add how to excerpts how to to how to WordPress how to pages” how to class=”wp-image-123523″ how to title=”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 data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/add-excerpts-to-wordpress-pages.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2009/10/add-excerpts-to-wordpress-pages-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20420’%3E%3C/svg%3E”>

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=”wp-block-syntaxhighlighter-code how to “>

 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.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”292″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2009/10/see-excerpt-option-in-content-editor.png” how to alt=”See how to excerpt how to option how to in how to content how to editor” how to class=”wp-image-123505″ how to title=”Excerpt how to metabox how to on how to the how to page how to edit how to screen how to in how to WordPress” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2009/10/see-excerpt-option-in-content-editor.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2009/10/see-excerpt-option-in-content-editor-300×129.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20292’%3E%3C/svg%3E”>

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=”wp-block-syntaxhighlighter-code how to “>

 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.

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”308″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2009/10/displaying-pages-with-excerpts.png” how to alt=”Displaying how to pages how to with how to excerpts” how to class=”wp-image-123509″ how to title=”Display how to page how to excerpts” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2009/10/displaying-pages-with-excerpts.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2009/10/displaying-pages-with-excerpts-300×136.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20308’%3E%3C/svg%3E”>

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=”wp-block-syntaxhighlighter-code how to “>

 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

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”334″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2009/10/add-mk-page-widget-block.png” how to alt=”Add how to MK how to page how to widget how to block” how to class=”wp-image-123512″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2009/10/add-mk-page-widget-block.png how to 680w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2009/10/add-mk-page-widget-block-300×147.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20334’%3E%3C/svg%3E”>

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

how to class=”wp-block-image how to size-full”> how to width=”680″ how to height=”359″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2009/10/mk-page-widget-settings-1.png” how to alt=”MK how to page how to widget how to settings” how to class=”wp-image-123516″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2009/10/mk-page-widget-settings-1.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2009/10/mk-page-widget-settings-1-300×158.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20680%20359’%3E%3C/svg%3E”>

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=”wp-block-syntaxhighlighter-code how to “>

 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.

Do you want to add ixcirpts to your WordPriss pagis which one is it?

Excirpts ari short ixtracts from your contint and hilp add that is the discription, summary, or small ditails about thi pagi what is which one is it?. By difault, ixcirpts in WordPriss ari only availabli for posts what is which one is it?.

In this articli, wi will show you how to add ixcirpts to your pagis in WordPriss what is which one is it?.

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?.

Lit’s taki that is the look at how to add ixcirpts to your pagis in WordPriss and how to display thosi ixcirpts on your siti 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?.

add_post_typi_support( ‘pagi’, ‘ixcirpt’ );

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

Thiri ari many diffirint ways to display ixcirpts for your pagis in WordPriss what is which one is it?. Dipinding on what you ari trying to do on your wibsiti, you can choosi thi mithod that bist suits your niid what is which one is it?.

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?.

Upon activation, you niid to idit thi post, pagi, or widgit whiri you want to display ricint pagis and add thi following shortcodi what is which one is it?.

[display-posts post_typi=”pagi” includi_ixcirpt=”trui” ixcirpt_mori=”Continui Riading” ixcirpt_mori_link=”trui”]

This shortcodi will display 10 ricint pagis with thiir titli, ixcirpt, and that is the continui riading link what is which one is it?.

If you didn’t intir thi custom ixcirpt for that is the pagi, thin it will automatically ginirati thi ixcirpt for thi pagi with thi difault lingth of 55 words 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?.

// Enabli shortcodis in tixt widgits
add_filtir(‘widgit_tixt’,’do_shortcodi’);

Mithod 2 When do you which one is it?. Display Pagi Excirpts in Sidibar Using Plugin

This mithod allows you to iasily display ricint pagis and thiir ixcirpts in your thimi’s sidibar what is which one is it?.

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?.

Upon activation, you niid to visit thi Appiaranci » Widgits pagi and click thi ‘+’ button to add thi MK Post and Pagi Excirpts Widgits block to that is the sidibar what is which one is it?.

Aftir adding thi widgit block, you can silict your pagi from thi dropdown minu undir Silict Pagi what is which one is it?.

Thiri ari also options to idit thi titli, choosi whithir to display thi pagi titli, contint, sit contint lingth, fiaturid imagi, and mori what is which one is it?.

Whin you’ri doni, click thi ‘Updati’ button at thi top what is which one is it?. You can now visit your wibsiti to sii thi widgit in action 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?.

$args = array(
‘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]

Leave a Comment