On my posts page (the one set as “Posts page” in homepage settings), the most recent post is showing up twice. It does not do this on archive pages. I did make sure sure it is the theme causing the issue by switching themes and seeing the problem go away. I also disabled all plugins and custom code to verify it wasn’t a conflict and it still shows up twice with the theme. I am using Ethos on X Child Theme 10.2.9 with Cornerstone 7.2.9. It just started happening out of nowhere. Please help. Thanks in advance.
Hi @tkulow,
Thanks for reaching out.
There might be some different reasons behind your reason, and I would like to suggest troubleshooting the following common issue to help us recognize the reason.
1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN
If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
I would also request that you activate any of the default themes like TwentyTwenty and check if the issue persists or not. If the issue only exists with the Pro, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note, including:
– WordPress Site URL & Login URL
– WordPress Admin username/password
To create a secure note, click the key icon underneath any of your posts.
Thanks
Thank you for responding, but I’m not sure you read my message as I stated that I already disabled plugins and custom code and changed the theme (I did change it to twenty twenty), and it’s only a problem when I change the theme. I made a staging site for you and will leave the credentials in a secure note on this message.
Hello @tkulow,
Did you change the WP login? It seems that we cannot log in using the log in URL below in the secure note.
Thanks.
No, the default wp-admin
link does not work for security purposes. There is a login link at the top of the page. I just tried logging in with those credentials and got right in.
Hey @tkulow,
After making diligent efforts to reproduce the reported concern within my local environment, I can confirm that no duplicate posts are being observed on my news/blog page. However, I wish to apprise you of the availability of a new theme update, which I strongly recommend applying to your website. This update may effectively address the existing issue. Please be aware that automatic updates are not enabled; therefore, kindly access the latest theme version through your themeco dashboard and proceed with the manual update process.
Hope that helps and let us know how it goes.
Thank you @marc_a. I downloaded the version from my themeco dashboard (10.3.2) and installed it. The issue remains.
Hey @tkulow,
I checked your setup and I see you’ve updated X but haven’t updated Cornerstone, always make sure to update both X and Cornerstone to avoid conflicts and potential errors. After doing the updates, remember to clear all caches (if you are using WP Rocket, WP SuperCache or W3 Total Cache) when updating so that the code from the latest release is always in use.
Let us know how this goes!
I always update Cornerstone immediately after I update X Theme, but I didn’t see the little “Update Required” link next to the “Deactivate” link on the plugins menu. I’ve never seen that until now. There is usually an indicator and notice from WP that the plugin needs to be updated. Anyway, I updated it now and cleared all cache and the issue remains.
Hey @tkulow,
Upon attempting to access the sandbox link, it has come to our attention that a 500 error is being displayed. We kindly request your assistance in addressing this matter promptly to enable us to conduct a thorough investigation.
Thank you.
You didn’t read my “VERY IMPORTANT” comment on my original inquiry, which was to disable the functions.php code before deactivating one of the plugins. I deactivated the code via FTP and the 500 error is gone.
Hello There,
The staging is up and running again. The issue seems weird because it only happens in your installation. We have tested on different installs and we cannot replicate it. It seems like a custom query is modifying the items. I would recommend that you try to disable the “Filterable Index” in the Theme Options or change the Category IDs and see how it goes.
Thanks.
Thank you. It seems to be stopping when I disable filterable index, but I want to only show posts that have categories with IDs 2 (News) and 106 (Training) as shown in your screenshot. Did you guys change the way that works? We have not changed that and it has never been an issue. I can’t find documentation on it either.
If I change Category IDs, it just sorts them differently, and still shows posts that do not have the Category IDs I specify. That particular post that shows up twice only has the News category. If I just put 2 in the field it shows up twice. If I just put 106 in the field, it does not duplicate it, but it shows up further down the list and it is the most recent post.
How can this be fixed? Only the theme and Cornerstone are installed, and I have disabled all custom code in the functions.php
file. I have not edited theme files or copied any template files. It seems like I need to stop using the filterable index option and make my own custom filter to fix this query, though. What do you think?
Hey @tkulow,
Nothing changed on our end. As mentioned by my colleagues, this issue only happens on your end.
What I found is changing the number of blog post prevents the double posting. There is something in your site overrideing the number of post. Note that our theme can be overridden by 3rd party code and we haven’t asked yet if you have an mu-plugin. Kindly check if you have an mu-plugin. If you do, test removing custom PHP codes or files in the folder.
I changed the number of blog posts from 10 to 4 on my non-staging site like you did and it shows 5, including the doubled up one.
As for mu-plugins, the only thing that remains enabled after disabling all the other plugins is the WordPress automation by Installatron plugin, which has no affect on post queries.
I appreciate your help, but we’re not getting anywhere with this. I will just write apre_get_posts
filter to only include the news and training categories and disabled filterable index. Have a good rest of the week.
Hey @tkulow,
You’re welcome and we’re glad that you’re able to write your own filter for your posts.
Thank you.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.