Add manual excerpt option not showing for pages

I am wanting the option to add an excerpt for certain pages I would like to use with THE GRID. The content from the page is not being pulled into the excerpt space.

As per information posted on the forum I have updated my functions.php file via ftp to include the following:

add_post_type_support( ‘page’, ‘excerpt’ );

However, the excepts is not an option showing under screen options. See attached image to determine if I have entered the add post line from above correctly.

Thank you.

Hello There,

Thanks for writing in! By default, page excerpts were disabled by WordPress. This is why you are only seeing page titles and no descriptions in it. You have to turn in on by inserting this following code in your child theme’s functions.php file

// Add manual excerpts to pages
// =============================================================================
add_action( 'init', 'my_add_excerpts_to_pages' );
function my_add_excerpts_to_pages() {
     add_post_type_support( 'page', 'excerpt' );
}
// =============================================================================

To display the page excerpt, you may have to use the manual excerpts. To add an excerpt to a page, simply write one in the Excerpt field under the post edit box. Please see the screenshot below: http://prntscr.com/a57dbr

Excerpts are optional hand-crafted summaries of your content that can be used in your theme. Learn more about manual excerpts here: https://codex.wordpress.org/Excerpt

We would loved to know if this has work for you. Thank you.

Thank you—yes the code for the functions.php is working. Additionally, the original code [simply: add_post_type_support( ‘page’, ‘excerpt’ );] finally started working (and sticking in the file) once I deleted the unnecessary default wordpress themes (2015, 2016, 2017) from my files. Odd, may not be related or causal, but the excerpt option was available and the code stayed saved in my functions.php file after that.

Hey Dianne,

That seems odd. It might have been a problem with your server / file system. The theme could not do that on itself.

An example in WordPress documentation about the add_post_type_support shows that it is added during init.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.