RFE: Page Excerpts

  • dayrinni

    #5660

    Hello,

    My site uses Page Excerpts and it seems this theme does not natively support them through the Page page. So I had to add some custom code (very small, but still a change had to be made) in order to have page excerpts. I was wondering if this feature could get added to the theme?

    Thanks.

    Prasanna SP

    #32410

    It is WordPress which is disabling excerpt for pages. You can enable it by adding just a single line to your child theme’s functions.php file

    add_post_type_support( 'page', 'excerpt' );

    dayrinni

    #32411
    Quote:
    It is WordPress which is disabling excerpt for pages. You can enable it by adding just a single line to your child theme’s functions.php file

    add_post_type_support( ‘page’, ‘excerpt’ );

    Is that the only way to add it in WordPress (that is how I previously did but maybe I missed an option some where).

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.