How to enable excerpts for pages

This is an old trick, but in case you missed it i am re-publishing it. This is a really simple thing to do. Just follow these steps.

1. Open functions.php in your theme editor.

2. Add this line where you find appropriate:

add_post_type_support( 'page', 'excerpt' ); // Enable excerpts for pages.

3. Save your file.

In a default wordpress theme pages are only listed on search pages. In order to use excerpts, you need to convert the_content calls to the_excerpt in your appropriate template (search.php if exists).


About Staff is a design blog about WordPress and web design. We usually write about wordpress, plugins, themes, web design resources, php, css, jquery, adsense and more.. If you want to get notified about our posts, be sure to subscribe to our feed or follow us on facebook. You can also subscribe to our mailing list. No spam, we promise.

Leave a comment

Your email address will not be published.