Forums › Forums › Search & Filter Pro › Click a filter, but it shows all results and does not filter [Please help!]
- This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by Ross.
-
Anonymous(Private) October 20, 2014 at 5:04 pm #6204
URL: http://lbsofva.com/new/catalog/
I have tried all the options and configurations and cannot seem to figure this out. I have four custom posts each with different attributes and When I try to filter between them, the results do not change. It still shows the same 4. There is only one entry for each so only one should when a filter is clicked. I can provide WP login if need and any help is greatly appreciated. Thanks!
Anonymous(Private) October 20, 2014 at 8:56 pm #6212I changed and added it to a custom archive page template: http://lbsofva.com/new/catalog-items/ – Still the same results with the filters. They do not actually filter anything. I have posts with new and used attributes and well as an example of each type of trailer. Any help is greatly appreciated!
Ross Moderator(Private) October 21, 2014 at 4:03 pm #6240Hey Travis
Are you using a custom template? If not, it is highly recommended you enable this in the backend – otherwise you have no control over how results are displayed.
As a default setting “search.php” as the filename is good for most themes.
If you have this setting enabled, then the next thing to do is to edit this template (in the case above it will be search.php).
Some themes add their own queries in to the templates for displaying posts/archives/search results. S&F uses the default loop in WP (and themes should really be too) but if there is a custom query in this template then it is overriding the search results and replacing them with the results for its own query.
What you need to do is make sure that the template that is being using for S&F, uses the standard posts loop from WordPress and that there are no custom queries interrupting this inside the template.
The main things you do not want to see are
query_posts
,get_posts
andWP_Query
– if these are in the template for S&F then this is what will be causing the issue.Does that make sense? I can explain further if you need
-
AuthorPosts