Skip to content

How To Add Excerpts To WordPress Pages

WordPress post excerpt is a feature to add a brief summary of your posts. It looks like that post excerpt feature is made only for posts, but it’s possible to add excerpts to WordPress pages without using any external plugins.

Open your current theme’s functions.php file and add the following code:

function my_init() {
     add_post_type_support('page', array('excerpt'));
}
add_action('init', 'my_init');

Leave a Reply

Your email address will not be published. Required fields are marked *