At HappyMomGuide.com, everytime I search for something, I end up with about a million of that search result, even if it’s the same post/product.
For example, lets say I wanted to search for Cherie (first name of one of the contributing authors to the blog) – here’s a link
https://happymomguide.com/?s=cherie
…the same blog post, that mentions a post about her, shows up repeatedly for something like 30 pages of results. Yes, that post mentions her, but it should only show up ONCE, right? Can someone please help?
Hi Punita,
Thanks for writing in! This is not happening in my test sites and this is not a known issue as well.
Can you try testing for a plugin conflict. 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 Paul – I tried the approach you described and deactivated ALL plugins. I activated them ONE by ONE and flushed cache and reloaded search results… and found the culprit. Oddly, activating CORNERSTONE is what seems to be causing the multiple / repeat results.
Again, here’s an example:
https://happymomguide.com/?s=cherie
Can you please help?
Hi @punitarice,
Can you please try activating the X parent theme to check if the issue persists?
If it still doesn’t help, please provide us with your admin account so we can take a closer look.
Thank you.
I tried switching to parent theme; no change.
Hello Punita,
Regretfully the given credential is not working for us. It seems that the username is incorrect.
Please double check it.
Thanks.
So sorry just updated it. Please refer to secure note.
Hello Punita,
After further investigation, I found out that this is a bug in the recent Cornerstone release. I’ve submitted this to our issue tracker so the developers will be made aware of it. Once this is fixed, Cornerstone will be updated and rolled out in the next release update cycle.
Please bear with us.
When will this bug be corrected? It is VERY annoying.
Hi @mindihirsch,
This issue has been added to our bug tracker and it should be fixed in coming updates.
@punitarice @mindihirsch: right now, try adding the following code under functions.php file locates in your child theme:
add_filter('cornerstone_enable_search', 'disable_search_for_admin');
function disable_search_for_admin ( $enable ) {
return is_admin() ? false : $enable;
}
Let us know how it goes!
Hey @mindihirsch and @punitarice,
I just wanted to chime in here that the code provided by Thai is not applicable for this case as it’s related to this issue: https://theme.co/apex/forum/t/cornerstone-conflict-with-woocommerce-search/59099. Though still related to the Cornerstone Search, it won’t solve the duplicate search results as that disables the said feature in admin while the case in this thread happens in the frontend.
The Cornerstone Search feature was recently added to make Cornerstone V2 elements content available for WordPress search. But since it currently has a problem outputting the search results, you can temporarily disable it by adding this code in the child theme’s functions.php.
add_filter('cornerstone_enable_search', '__return_false');
That line or temporary solutions in general should be removed when an official fix is included in one of our releases. You can check the official solutions in our Changelog: https://theme.co/changelog
Hope that helps and we’re sorry for the inconvenience.
I am also having this problem with one of my theme X websites. I did add that code to functions.php and it worked. Will we all be informed when this is corrected? So we can remove that code…
Hello @ElytraDesign,
Yes, we communicate all official announcements from our Changelog page which we suggest you to keep an eye.
Thanks.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.