-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with “Relevanssi” Plugin #436
Comments
Should pin this feature request for a future update. |
Thanks for your reply. Hope that this feature will be implemented soon. |
Info on how to implement: https://wordpress.org/support/topic/incompatibility-with-relevanssi-plugin/ |
@zymeth25 just getting back into WordPress and starting to remember how this works... If I understand correctly, we use the WP_Query object when calling query_posts($args);
global $wp_query;
if(function_exists('relevanssi_action_links')){
relevanssi_do_query($wp_query);
} I can write this and test it locally, but it'll be hard to add tests for integrations with other plugins. |
Yes, 'query_posts' actually also makes it the main query. This is fine if someone wants to use LCP to generate a whole custom archive page, or a custom blog page, but should be avoided in all other cases e.g. when it's just a secondary list in a widget or part of a larger post/page. This is why the problem in #445 exists. This also means that your solution would work but according to the docs linked in the support thread above it would run the query twice, being somewhat resource inefficient. So perhaps the best way is to add your change and then I'll try to think of something as per #445 to improve post querying. It's possible to write tests for this but a bit too complicated and unnecessary I think. Maybe later ;) |
If it doesn't work with |
[catlist search=”The Cake is a lie”]
This feature does not work with “Relevanssi” Plugin- plugin for website search. It shows empty.
After deactivating this, the { search=”The Cake is a lie” } shows results.
Relevanssi is much better than WordPress default search function in terms of results, so this cant be avoided.
Kindly make necessary changes/ suggestions/ solutions for this.
The text was updated successfully, but these errors were encountered: