Snippet: Add excerpt box for pages

Excerpt is short extract from a post. If you want to display excerpt on your wordpress website page.

Add following code to “functions.php”


add_action('init', 'add_page_excerpts');
function add_page_excerpts() 
    add_post_type_support( 'page', 'excerpt' );

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>