WordPress Page Excerpts

6th June 2014

Reading Time:

In a number of recent WordPress projects I’ve needed to allow excerpts on pages. It’s pretty simple, but to make sure I don’t forget I’ll leave the code here!

In your functions.php file, add the following:


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

Now just go to add/edit a Page and make sure you tick the Excerpt checkbox in the Screen Options menu.

Screen Options

Share this post

Leave a Reply

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