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 *

About the author

Rik Kendell is a developer, designer and writer in Leeds, UK, specialising in responsive WordPress websites. With over 10 years experience in the industry, Rik has worked on award-winning teams at agencies, in-house and as a freelancer. Rik has worked with clients ranging from the NHS, Sky and Skipton Building Society to McDonalds, Lamb’s Navy Rum and Crabbie’s Ginger Beer.

Outside of work Rik is also a keen writer, an amateur woodworker, gamer and foodie. His blog posts, reviews and Tweets have been published by the BBC, the Evening Standard, the Guardian and the Independent. He has written guest posts for a number of agencies and industry websites.