Forums › Forums › Search & Filter Pro › No Results or Can't Exclude Categories or…
Tagged: ajax, Auto Submit, categories
- This topic has 7 replies, 2 voices, and was last updated 11 years ago by
Ross.
-
Ross Moderator(Private) August 20, 2014 at 11:32 pm #3820
Hey Norm
It sounds like we need to get (3) working and then see if you still have a category problem.
This plugin uses the main loop in order to display results – by modifying your main loop.
Therefor, your search results template must use the main loop in order to display results.
Some themes (probably like your current one) sometime add a custom query to your templates – to be honest this is generally not best practise in my opinion anyway.
You need to edit the template that is being used to display the results (I think the default would be “search.php”) and look out for any custom queries in there – normally something like “get_posts”, or “wp_query” or “query_posts” – in most cases you can simply remove the line(s) with this query and the rest should work ok?
There have been a few posts popup recently about the category issue I’ll look further in to this, its possible its a bug created by a recent update.
Thanks
Ross Moderator(Private) August 21, 2014 at 1:06 pm #3851Hahaha! I didn’t even realise 😉 Let me know how you get on anyway.
Anonymous(Private) August 25, 2014 at 1:51 am #3906Just an update, for anyone who cares. Or maybe for anyone using this plugin with Avada down the line.
In the settings, selecting “use custom template” and designating “search.php” as the template does not return results.
Also, NOT selecting “use custom template” returns results, but they’re completely UNFILTERED.
Selecting “use custom template” but NOT entering the name of the template works! I think I figured out that, in this case, it’s using archive.php for the search results by default and leaving the template field blank allows it to do that. Naturally, entering archive.php in the template field works too.
Based on the above, perhaps selecting “use custom template” but leaving the template field blank might be something those experiencing no results, or unfiltered results (even if they’re not using Avada), might try?
Ross Moderator(Private) August 26, 2014 at 1:06 pm #3953Hey Norm apologies its been a bank holiday here in the uk which means no one went to work for the last 3 days, I’ll be going through all the support ticket backlog today and hopefully get some answers a little later on.
Thanks
-
AuthorPosts