Page Excerpts in WordPress

I have to give a shout out to Michael Fields for sharing this originally. Typically, a WordPress post allows you to create a hand-crafted “excerpt” which will often show up as a sort-of article teaser to give the reader an idea of what the article is all about. Some templates allow for post excerpts as well as “page excerpts” which, in the past, would just pull the first 150 or so characters from your article… often leaving some weird text-breaks and not really giving a good description of what the page is all about.

WordPress 3.0 built in some basic functionality allowing you to quickly and easily enable page excerpts. Simply add this code to your functions.php file:

add_post_type_support( 'page', 'excerpt' );

And you’re done. If you visit the “edit” screen for one of your pages and don’t see the “Excerpt” section, then simply enable “Excerpts” in the “Screen Options” at the top right of your screen. Thanks again Michael! What a life-saver!