Forums › Forums › Search & Filter Pro › Not working with some themes
- This topic has 3 replies, 2 voices, and was last updated 10 years ago by Ross.
-
Anonymous(Private) November 12, 2014 at 8:13 pm #7504
Hello, I tried some pinterest-styled themes and with some of them S&F works, with some of them not. I just have a simple taxonomy based search in the sidebar of index-page and depending on themes it´s working (for example free theme PR News) or not (for example Pinboard from Themify). Is there a szenario why it could not work? Thanks for helping!
Ross Moderator(Private) November 12, 2014 at 8:41 pm #7505Hey Jan
It depends on how you are using the plugin.
If you are using a shortcode, S&F uses its own template for displaying results (unless you customise) – so this way should work with any theme.
If you are not using ajax with shortcode (options in settings box), then S&F will use a template from your theme (the below applies when you are not using a shortcode):
In a regular WordPress setup, almost all page templates found within a theme use The Loop – http://codex.wordpress.org/The_Loop
S&F modifies the main query to display results, and by doing so allows seamless integration with most themes and their templates. However, some themes, customise WP logic so much that they use their own seperate queries within the template files. These won’t work without some modification to the page templates –
Have a look and see if the themes in question run their own queries in the template files – this will normally be one of these 3 functions:
get_posts query_posts WP_Query
In many cases to create a working template you just need to remove the query in the page template and it will work.
Hope that helps 🙂
Ross Moderator(Private) November 13, 2014 at 12:08 am #7518Hey Jan
If you modify an existing template in your theme then it will likely affect other pages that use it too.
The best course of action is duplicate a template before making modifications – and then specify the templates name in S&F under “use custom template”
Glad that info helped anyway 🙂
Thanks
-
AuthorPosts