Support » Fixing WordPress » Excerpt option unavailable in Screen Options even after adding php function

  • Excerpt option is unavailable in Screen Options even after adding php function to the functions.php file.

    “add_post_type_support( ‘page’, ‘excerpt’ );”

    I added the code successfully, but the excerpt option is still not showing up.

    I have the following plugins installed. Not sure if they would cause this problem.

    Advanced Custom Fields
    Customise WordPress with powerful, professional and intuitive fields.

    Version 5.7.7 | By Elliot Condon | View details
    Select Akismet Anti-Spam
    Akismet Anti-Spam
    Activate | Delete
    Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.

    Version 4.0.8 | By Automattic | View details
    Select Bulk Page Creator
    Bulk Page Creator
    Allows you to create multiple pages in a batch/bulk manner saving time when initially setting up your WordPress site.

    Version 1.1.0 | By Dagan Lev | View details
    Select Catch IDs
    Catch IDs
    Settings | Deactivate
    Catch IDs is a simple and light weight plugin to show the Post ID, Page ID, Media ID, Links ID, Category ID, Tag ID and User ID in the Admin Section Table. This plugin was initially develop to support our themes features slider. Then we thought that this will be helpful to all the WordPress Admin Users. Just activate and catch IDs in your page, post, category, tag and media pages.

    Version 1.5 | By Catch Plugins | View details
    Select Classic Editor
    Classic Editor
    Settings | Deactivate
    Enables the WordPress classic editor and the old-style Edit Post screen layout (TinyMCE, meta boxes, etc.). Supports the older plugins that extend this screen.

    Version 0.4 | By WordPress Contributors | View details
    Select Column Shortcodes
    Column Shortcodes
    Adds shortcodes to easily create columns in your posts or pages

    Version 1.0 | By Codepress | View details
    Select Custom Content Shortcode
    Custom Content Shortcode
    Reference | Deactivate
    Display posts, pages, custom post types, custom fields, files, images, comments, attachments, menus, or widget areas

    Version 3.8.0 | By Eliot Akira | View details
    Select Google Fonts for WordPress
    Google Fonts for WordPress
    Deactivate | Settings
    The easiest to use Google Fonts plugin. No coding required. 870+ font choices.

    Version 1.2.5 | By Danny Cooper | View details
    Select Head, Footer and Post Injections
    Head, Footer and Post Injections
    Header and Footer lets to add html/javascript code to the head and footer and posts of your blog. Some examples are provided on the official page.

    Version 3.1.2 | By Stefano Lissa | View details
    Select Hello Dolly
    Hello Dolly
    Activate | Delete
    This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.

    Version 1.7 | By Matt Mullenweg | View details
    Select List category posts
    List category posts
    List Category Posts allows you to list posts by category in a post/page using the [catlist] shortcode. This shortcode accepts a category name or id, the order in which you want the posts to display, the number of posts to display and many more parameters. You can use [catlist] as many times as needed with different arguments. Usage: [catlist argument1=value1 argument2=value2].

    Version 0.79 | By Fernando Briano | View details | How to use | Donate | Fork on Github
    Select Pods – Custom Content Types and Fields
    Pods – Custom Content Types and Fields
    Pods is a framework for creating, managing, and deploying customized content types and fields

    Version 2.7.9 | By Pods Framework Team | View details
    Select Really Simple SSL
    Really Simple SSL
    Premium Support | Docs | Settings | Deactivate (revert to http)
    Lightweight plugin without any setup to make your site SSL proof

    Version 3.1.1 | By Rogier Lankhorst, Mark Wolters | View details
    Select Remove “Powered by WordPress”
    Remove “Powered by WordPress”
    Settings | Deactivate
    Removes the WordPress credit on the default WordPress theme for those wanting to customise the theme

    Version 1.2.5 | By | View details
    Select Retina @2x
    Retina @2x
    Activate | Delete
    A simple and lightweight plugin that will automatically look for retina images that end with “@2x”.

    Version 1.6 | By Wouter Postma | View details
    Select Shortcodes Ultimate
    Shortcodes Ultimate
    A comprehensive collection of visual components for WordPress

    Version 5.0.8 | By Vladimir Anokhin | View details
    Select W3 Total Cache
    W3 Total Cache
    Premium Support | Settings | Deactivate
    The highest rated and most complete WordPress performance plugin. Dramatically improve the speed and user experience of your site. Add browser, page, object and database caching as well as minify and content delivery network (CDN) to WordPress.

    Version 0.9.7 | By Frederick Townes | View details
    Select WordPress Mobile only & Desktop Only Content
    Wordpress Mobile only & Desktop Only Content
    A small plugin which lets you add Mobile Only & Desktop only content on your wordpress website/blog. Use [mobileonly] your content[/mobileonly] shortcode and [desktoponly] your content[/desktoponly] shortcode for content for relevant device.

    Version 1.2 | By Raja Usman Latif | View details
    Select WP Notification Bars
    WP Notification Bars
    Activate | Delete
    WP Notification Bars is a custom notification and alert bar plugin for WordPress which is perfect for marketing promotions, alerts, increasing click throughs to other pages and so much more.

    Version 1.0.4 | By MyThemeShop | View details
    Select WP Retina 2x
    WP Retina 2x

    The page I need help with: [log in to see the link]

Viewing 8 replies - 16 through 23 (of 23 total)
  • Moderator Steve Stern


    Support Team Volunteer

    I just checked with Twentytwelve and you’re right, there is no excerpt field on pages.

    This adds it

    function make_excerpt() {
            add_post_type_support( 'page', array( 'excerpt' ) );
    add_action( 'after_setup_theme', 'make_excerpt' );

    @howdy_mcgee, you used the wrong hook.


    I wasn’t using 2012, I was using 2015. But I also tried 2016, and 2017. let me give this a shot. I hadn’t seen this code anywhere online.

    @sterndata, @howdy_mcgee

    This issue was fixed by replacing the “typographers” quotes in the code I had copied with the correct quotes.

    See the difference between the two?

    add_post_type_support( ‘page’, ‘excerpt’ );
    add_post_type_support( ‘page’, ‘excerpt’);

    That was the issue all along.

    Moderator Steve Stern


    Support Team Volunteer

    So, cogitating about this last night, I realized that because pages are not aggregated like posts (on a blog or other archive page), there’s really no need for a specific excerpt. The excerpt functions will grab the first some-number of words from the page’s content to make an excerpt if needed.

    The code above creates the ability to have a specific excerpt.

    @sterndata, @howdy_mcgee

    Actually, that was not the answer Steven. I just realized that the real problem was that I this snippet of code as using the wrong kinds of quotes around Page and Excerpt. That’s why it didn’t work on any theme. I had copied the code form a website where whoever shared it was using “typographers” single quotes which don’t work in php. 🙁

    See the difference between the two?

    add_post_type_support( ‘page’, ‘excerpt’ );
    add_post_type_support( ‘page’, ‘excerpt’);

    That was the issue all along.

    @sterndata, @howdy_mcgee

    Here’s the sad news…

    Now that the excerpt field is showing up, it’s not working. I’ve added a custom excerpt, but my site is still displaying the default excerpt of the first two sentences. And idea how I can force it to use my custom excerpt?

    Now that my excerpt field shows up, but is not actually changing the excerpt I’ve just decided to create a new custom field all-together. I can at least display the results of my custom excerpt field on my website. However, since I’m using this custom excerpt field now, I would like to just delete the excerpt functionality from WordPress all-together. I can just use the custom excerpt field created with another plugin, and I can use Yoast to create excerpts for use by search engines. So, does anyone know how to disable excerpts from being auto-generated by wordpress?

    just a quick thank you to @howdy_mcgee 🙂

    your solution suggested above worked like a charm for me;
    cheers a ton! LX

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Excerpt option unavailable in Screen Options even after adding php function’ is closed to new replies.