Forums Forums Search & Filter Pro Not working with some themes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #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
    #7505

    Hey 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 🙂

    Anonymous
    #7511

    Thanks for your detailed explanation – removed a query_posts by themify under “Default query categories” in index.php and it´s working now. Hope the code is not missing for other stuff…so it helped, thank you very much!

    Ross Moderator
    #7518

    Hey 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

Viewing 4 posts - 1 through 4 (of 4 total)