• Resolved kappapride

    (@kappapride)


    So someone just pointed out to me that all the excerpts are the same on every page.

    It seems like WordPress is taking the top post on every page, and using that excerpts for EVERY POST on the page: http://prntscr.com/hhsmwt / http://prntscr.com/hhsoau

    It can be fixed by manually adding an excerpt to the post. I have done that to my homepage. However, I can’t manually do that for every post on my site (and every new post), it would take ages!

    I did some further debugging. I can see the excerpts are being generated correctly: http://prntscr.com/hhsnpd but are just being displayed incorrectly.

    I tried different themes, same issue.

    Does anyone have a fix for this?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @kappapride,

    I’ve had a look at your page and the problem seems to only happen for some posts, not all of them. The posts with the wrong excerpt don’t necessarily the share the same category.

    And the excerpt shown by all of them seems to be that of the most recent post within that group of “problematic” posts.

    It is difficult to see excatly what the cause may be without looking at the code but it looks like the page may run more than one query and perhaps

    wp_reset_postdata();

    is missing from one of them.

    You can read more about it here: https://codex.wordpress.org/Class_Reference/WP_Query

    If the problem persists when the theme is changed, I would look if the issue is caused by a plugin.

    Thread Starter kappapride

    (@kappapride)

    It seems like it fixed itself. I checked this morning and it was fixed. Nothing has changed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Excerpts Showing Same for All Posts?’ is closed to new replies.