Easily Add Page Excerpts in WordPress

1

Posted by: jzelazny on August 9, 2011

Categorized: HOWTOs, WordPress

Tagged: , , ,

Ever need to add an excerpt field for WordPress when working with pages? There is an easy, one line way to do this (no plugin needed). Simply add this to your theme’s functions.php file:

add_post_type_support( 'page', 'excerpt' );

Once you have that in place – you can then use the WordPress the_excerpt() function to show the excerpt within the theme.