Forums › Forums › Search & Filter Pro › Does not show results as expected
- This topic has 1 reply, 2 voices, and was last updated 10 years, 1 month ago by
Ross.
-
Anonymous(Private) May 15, 2015 at 9:27 am #17552
Hello!
Have such issue.
Do all according instruction: Setup all options, paste shortcode. Select in dropdown any selection, it leads to search result page (I use archive.pgp template) and … nothing – shows all posts from site….
And, what strange, have no problem with free version.Ross Moderator(Private) May 15, 2015 at 9:59 am #17556Hey there
So I’ll try to explain what the difference is between free and pro and why one can work and not the other:
So just a bit of info.
The way WP works is, for tags, categories and taxonomies you always have an archive page, for categories its:
http://yoursite.com/category/some_category/
Tags:
http://yoursite.com/tags/some_tag/
Taxonomies:
http://yoursite.com/taxonomy_name/some_taxonomy/
All themes, no matter how they are setup should be able to load these archive, and already have filtering applied.
What S&F free does is, when you choose a category, it will redirect the user to the URL like above – and WP actually does all the “filtering” – this is native WP stuff.
With the Pro version, to get the more advanced features like Ajax or custom templates – we can’t use the method above. So what we do with Pro is create a specific Search Results page.
So now all searches goto a page like:
http://yoursite.com/search-filter-results/?_sf_category=some_category
What we must do is create this search results page.
The problem here is, not all Themes use WordPress standards.
To create a Search Results page using the archive method, the template you choose from your theme must use The_Loop
I have a feeling that that the archive template file you are using doesn’t use the main WordPress query, and instead creates its own query inside the template which replaces the query created by S&F.
I think you need make some modifications to your
archive.php
according to this question (My results won’t show):http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/#h-bad-template
Let me know when you have tried this, and if its still not working please send me a link 🙂
Thanks
-
AuthorPosts