• When creating a post and writing an excerpt and saving it, the excerpt doesn’t show. The site goes with the “more” tag instead. When I take off the “more” tag in hopes that the excerpt takes over, it doesn’t work and shows the whole blog post, not cut off.

    In my dashboard’s Settings > Reading, I’ve tried both options for “For each post in a feed, include ” and neither helps it show.

    Please let me know what to do to make the custom excerpt show, thanks.

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

Viewing 15 replies - 1 through 15 (of 17 total)
  • Leo

    (@leohsiang)

    Hi there,

    Just to confirm, you are referring to the excerpt metabox here?
    https://www.wpbeginner.com/plugins/add-excerpts-to-your-pages-in-wordpress/

    Can you make the issue show on one of the posts?

    Thanks ??

    Thread Starter agentrosehq

    (@agentrosehq)

    Yes.
    The difference is that the excerpt from my post editor in the excerpts box shows three dots at the end “…” to differentiate, but the blog doesn’t show that, it just shows what cut off at the more tag.

    Screenshot from blog (just go to agentrosehq.com/blog): https://www.flickr.com/photos/agentrosehq/50197127213/in/dateposted-public/

    Screenshot from my post editor: https://www.flickr.com/photos/agentrosehq/50197949912/in/dateposted-public/

    Also, how do I stop the # of comments from showing on /blog on my site after each preview? See blog screenshot

    Leo

    (@leohsiang)

    So just to make sure, you are saying that the … in your excerpt is replaced by the word outward?

    Thread Starter agentrosehq

    (@agentrosehq)

    I don’t think it’s being “replaced” so much as it’s literally not using the excerpt at all. I simply pasted my original text into the excerpt but changed it only a little at the end to test it. I’d like the excerpt to show and not the cutoff version using the more tag, which is the one showing now.

    Leo

    (@leohsiang)

    Can you test if the same issue occurs in a twenty series WP theme?

    Thread Starter agentrosehq

    (@agentrosehq)

    I did a live preview in the twenty fifteen theme and the same problem still persists. Is there something I have to do to “activate” the excerpt?

    Leo

    (@leohsiang)

    It should be activated by default.

    Maybe try disabling all plugins to eliminate any conflicts?

    Thread Starter agentrosehq

    (@agentrosehq)

    I’ve deactivated every plugin and the problem still shows.

    I’d also like to note that I’ve updated all my plugins due to this problem, and all have updated successfully except for GP Premium because I no longer have that. However, I don’t think that would be the problem for post functionality since I don’t think that’s a premium feature.

    Let me know what I should do.

    • This reply was modified 4 years, 3 months ago by agentrosehq.
    Leo

    (@leohsiang)

    Hmm unfortunately I haven’t seen this issue before and am out of ideas here.

    Does the same issue occur if you create a new post to test?

    It’s not a theme issue if it happens with a twenty series default theme as well.

    Might be worth checking with WordPress’ support as well.

    Thread Starter agentrosehq

    (@agentrosehq)

    Mind igving me the link to WordPress support? I know wordpress.com handles their free domains, is there one for things like my site?

    Theme Author Tom

    (@edge22)

    Is there a reason you’re using the More tag at all if you’re using the excerpt metabox?

    If you need to, you can tell GeneratePress not to use the more tag in excerpts:

    add_filter( 'generate_show_excerpt', function( $show ) {
        global $post;
    
        // Check to see if the more tag is being used.
        $more_tag = apply_filters( 'generate_more_tag', strpos( $post->post_content, '<!--more-->' ) );
    
        if ( $more_tag ) {
            $show = true;
        }
    
        return $show;
    }, 20 );
    Thread Starter agentrosehq

    (@agentrosehq)

    Yes, using the more tag because the excerpt text wasn’t showing and I needed a way to cut off the blog post. FYI tried just having the excerpt and no “more” tag and that still didn’t work.

    Where do I add that code? Doesn’t seem to go to additional css.

    • This reply was modified 4 years, 3 months ago by agentrosehq.
    Theme Author Tom

    (@edge22)

    You can add it using one of these methods: https://docs.generatepress.com/article/adding-php/

    Thread Starter agentrosehq

    (@agentrosehq)

    Thanks, this worked – does this mean that more tags now mean nothing on my site, and that I’ll have to use excerpts every single time from now on?

    Update, I just tried taking the more tag off since I thought it would be useless, but instead, taking it out makes the entire post show on agentrosehq.com/blog – this seems confusing, is there a way to make the experience better on my end?

    • This reply was modified 4 years, 3 months ago by agentrosehq.
    Theme Author Tom

    (@edge22)

    It means the excerpt will still display even if the more tag is used.

    If the full post is displaying without the more tag, it means:

    a) Customize > Layout > Blog is set to display full posts.
    b) You’re using a post format other than “Standard”.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Blog exerpt preview not showing’ is closed to new replies.