Add an Excerpt Box for Pages

This hack will add the same "excerpt" box which you are familiar with on the "Add/Edit Post" admin area and duplicate that functionality on the "Add/Edit Page" section. Now you have the usual excerpt box in the page editor, and you may use the_excerpt() when listing more than one page

This hack will add the same “excerpt” box which you are familiar with on the “Add/Edit Post” admin area and duplicate that functionality on the “Add/Edit Page” section.

Now you have the usual excerpt box in the page editor, and you may use the_excerpt() when listing more than one page.

[php]
if ( function_exists(‘add_post_type_support’) )
{
add_action(‘init’, ‘add_page_excerpts’);
function add_page_excerpts()
{
add_post_type_support( ‘page’, ‘excerpt’ );
}
}
[/php]

If you enjoyed this post, make sure to subscribe to WPMayor’s RSS feed.

Jean Galea
Jean Galea
Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.

Consider sharing this post so others can find it:

Share on facebook
Share on twitter
Share on linkedin
Share on reddit
Share on telegram
Share on whatsapp
Share on pocket
Share on email

Join thousands of people receiving real-world, genuine evaluations of WordPress products and services just like this one every week.

The Beginner’s Handbook
From an introduction on how WordPress works to our recommendations on products and services.
👋 Hey there! We're Gaby and Mark
Every week we share tutorials and genuine reviews of WordPress products and services in our newsletter.
Thousands of people read it!
We’d love for you to join.
We’d love for you to join. Here’s what you’ll be getting:

A single weekly email directly to your inbox.