Wrong Excerpt to Image in Post

Hi there,
a while ago I asked for help in a similar manner. In this post https://theme.co/apex/forum/t/excerpt-in-recent-post/29083
Now we have the same error on the PostLists. Check out https://sharing-cake.com/category/recipes/. The order of the images is like the order of the posts, But the excerpt is totally wrong. For the first post it is right. The second exerpt on this page belongs to the 3rd post / image. The excerpt on the 3rd Post belongs to the 4th post… Anyway it is just the wrong text. The read more link links to the right post (headline and image).

Could you please help me to resolve this behavior. I still think it is a bug anywhere…

Thanks a lot!

Best regards !

Hi @MrWhy,

Thanks for reaching out.

It’s not due to the customization you added from that thread. Have you added some customization related to global query? Because even with posts meta, the information is displayed differently than the content.

And that’s a description from https://sharing-cake.com/gluten-free-vegan-dark-chocolate-cherry-almond-porridge/

Hence, it’s not because of the list, but the information pulled from the main post itself. I recommend removing your customization and test it again (but make sure to back them up). And do a plugin test, you can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

Let us know how it goes!

Hi @Rad,

i added the opengraph tags right after my posting here, i’ve seen that too. The strange thing is, there is no customization besides the Pro theme, some plugins out of it, WP Recipe Maker, and Yoast SEO Plugin. But all used plugins are known stable, as Pro is. I also removed all plugins, except Pro, to see whats happening then, but it is still the same problem.

Best regards

Björn

Hi @MrWhy,

In that case, would you mind providing your admin login credentials? The one in that thread is not valid anymore. I like to check it first with another theme.

Thanks!

Hi @MrWhy,

Would you mind providing your FTP login credentials as well? It may be good to disable them through it. Though, I tried the codes in my installation and it’s not affecting my posts listing.

Thanks!

Hi @Rad,

sure.

Hello There,

I have already re installed the theme and Cornerstone and still the issue exist. How did you created the posts? Did you use the Pro editor? I went ahead and edited each of your posts and make sure that the texts added in the text element is recognized by Yoast SEO so that it can easily detect the excerpt of the post. I ended up switch from html to rich text format in the element settings as shown below:

Please check your site now. And if possible, please continue with your other posts that does not display the correct excerpts.

Please let us know how it goes.

Hi @RueNel,

thanks for investigating. It is my wifes site. But yes she is adding everything through the ProEditor. I’m pretty sure she doesn’t write plain HTML. Have you been able to determine the problem? Am I the only one with this kind of problem?

But unfortunately now the Landing Page doesn’t show the excerpt any more. Did you change something here, too? (EDIT: FOUND THE CHANGE)

Thank you!

Hi @MrWhy,

Yes, we haven’t seen any similar issues and even on our own installations. The issue could be due to HTML, that last edit made sure they are just plain texts.

Though, you can also create the excerpts manually which is more advisable since you’re using the builder. And Wordpress will remove any kind of codes when it generates the excerpt including the texts in between them, and builder contents are wrapped in shortcodes. Hence, if the excerpt is empty after processing, maybe it is filled by the last excerpt pulled from the posts loop.

Please check this to add excerpt manually, https://www.wpbeginner.com/plugins/how-to-customize-wordpress-excerpts-no-coding-required/ (Just the step 1 : How to Add a Custom Excerpt in WordPress (Default) )

Thanks!

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