Blog Posts Page Misbehaving

Hello! This just started happening last week.

On our blog posts page - http://rocktothefuture.org/media-more/blog/ - the 2nd entry isn’t pulling the right information (it’s duplicating the first post on the page) when scrolling. The blog entry is “Give Shaun the Magic of Music” but the content is showing from the “Ethan is a Rock Star” blog. It does show the right blog information if you click into the entry from the blog slider.

I deleted the Shaun blog post and re-created it and have the same issue.

Hi,

In your blog page, It will always show all post from start to end disregarding what post you have added in your slider.

To skip the first post, you can add the code below in your child theme’s functions.php file.

function wpsites_exclude_latest_post( $query ) {
	if ( $query->is_home() && $query->is_main_query() ) {
		$query->set( 'offset', '1' );
	}
}

add_action( 'pre_get_posts', 'wpsites_exclude_latest_post', 1 );

Hope that helps.

No it’s not an issue of which blog post is showing. The 2nd blog on the posts page is showing the right Title but is pulling the body content from the newest post.

We just put up another blog post and it’s doing the same thing. Now the newest blog post is showing under the 1st, 2nd, and 3rd blog posts (although the titles of the posts are correct, the body is all coming from whatever the newest post is).

You can see here - http://rocktothefuture.org/media-more/blog/ . The first 3 posts have different titles but the body content is all coming from the most recent post. This just started last week, I think after I updated the theme.

Hi there,

I don’t think it is caused by our theme as we do use the normal WordPress functions to retrieve the blog posts.

I suggest that you change the Child Theme and use the Parent Theme to make sure that the problem is not generating because of any customization you might have there.

If the problem is there still, kindly change the teme from X to the default WordPress Theme. If the problem persists it shows it is not related to our theme.

Finally, I suggest that you check for 3rd party plugins conflict by deactivating all plugins except Cornerstone and check the case.

Thank you.

Hello!

I didn’t deactivate Cornerstone when troubleshooting because you said not to, but that’s actually the problem it looks like. I had to hire an outside service to help because I couldn’t find the issue.

This is their response
"We found that the issue is coming from the Cornerstone plugin, it not working well with the last WordPress changes
We disable it on our staging http://rocktothefutur.staging.wpengine.com to view the website you need username and password
demo
****** (I can send you this information if you need it)

the best way to solve this is to remove the plugin and edit the post without this plugin
we this in the first 3 posts http://rocktothefutur.staging.wpengine.com/media-more/blog/

Let me know if that is ok to remove the plugin and we will do that on the live website and recreate the posts"

But I don’t want to deactivate Cornerstone because thats a key piece of this theme and is how I make the web pages.

Hi There,

In that case please provide us login credentials (live and staging) on a secure note so we can take a closer look at the issue.

Thanks,

Ok I sent the information through the secure note. Thanks!

Hey there,

Thank you for the login information, I’ve checked your website and tested the plug-in conflicts and it seems that cornerstone is working ok.

I added three sample posts on your staging website using Cornerstone and they are all showing correctly on the blog page. This shows that the problem is not the cornerstone.

If there is another way that we can be of a help we will be more than happy to participate.

Thank you.

I’m not sure that your demo blog is showing that it’s working correctly. The body text on all 3 is the same so you wouldn’t see the issue since there’s no way to tell if it is overwriting the prior blog post.

When I enter a blog just as text, it seems to not overwrite the prior blog post. And actual, when I enter it as text the 3 prior posts don’t even show correctly.

http://rocktothefuture.org/media-more/blog/ - I just put up a text post and now the other 3 from the prior weeks are just showing the Cornerstone code.

And when I enter a blog post using Cornerstone, it does overwrite the prior blog post. I just put up 2 posts - one just through the text editor and one with Cornerstone. The one create in Cornerstone overwrites the prior blog posts.

So I really think this is a Cornerstone issue. Please advise.

Thank you for your patience in having this issue investigated. I’ve done some more testing on your site and was able to confirm it’s related to a bug in Cornerstone. This happens when you’re using V2 elements (latest major release). If you use classic elements it won’t replace the content. You could also try creating your blog posts in the WordPress editor instead of Cornerstone. We’re working towards getting this addressed in the next major update.

Hello!

Just to clarify - if we change the elements used to be “classic” (ex. “classic button”) then we shouldn’t see the issue then? I believe the only elements on the posts are text, image, and classic button (but the button was originally the newer button and then changed to “classic”). We can recreate the blog posts then using classic elements in the meantime if that will fix the issue.

Thank you!

Hi There,

Yes, what you could do is use classic elements. This is possible by holding cmd on Mac and ctrl on Windows before clicking “Add Section”. You’ll see it replaced with “Add Classic Section”. If you use classic layout elements (sections, rows, columns) and classic elements inside them, you won’t experience this.

You’re always welcome too!

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