Using different templates with shortcodes

Forums › Forums › Search & Filter Pro › Using different templates with shortcodes

Viewing 5 posts – 1 through 5 (of 5 total)
  • Anonymous
    #15708

    Sorry if this is a basic question, but I’m not having any luck finding the answer. I want to use filters on different pages with each page using a different template however the only thing that works for me is having the shortcode set with show=”Results”. Let’s say I want to create another template and call it “results2”, what do I have to do to make your plugin find it? Thanks.

    Anonymous
    #15756

    Hi @bullduck,

    The easiest way to do this is to take the ‘results.php’ template file and copy it to a new file named with the ID number of your form (for example, if your form ID is 102, then name the new template file 102.php)….it should go in a folder named /search-filter which should be in your (active) Theme folder.

    Then modify that new template however you like…..S&P Pro will *automatically* use THAT template (it looks for one that matches the form ID first, before using ‘results.php’) when it displays your results.

    Ross Moderator
    #15765

    Yup once again Trisha great advice 🙂

    Bullduck, you can also read up here:

    http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/with-a-shortcode/

    Thanks

    Anonymous
    #15766

    Thanks to you both for the replies.

    So, am I correct in understanding that I have to create a new form for each different template I want to use, or am I missing something?

    Ross Moderator
    #15767

    Ah yes, you may only have 1 template per search form..

Viewing 5 posts – 1 through 5 (of 5 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.