Forums › Forums › Search & Filter Pro › Using different templates with shortcodes
- This topic has 4 replies, 3 voices, and was last updated 9 years, 7 months ago by Ross.
-
Anonymous(Private) April 23, 2015 at 2:37 am #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(Private) April 23, 2015 at 10:39 pm #15756Hi @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(Private) April 24, 2015 at 12:52 am #15765Yup once again Trisha great advice 🙂
Bullduck, you can also read up here:
Thanks
Ross Moderator(Private) April 24, 2015 at 2:13 am #15767Ah yes, you may only have 1 template per search form..
-
AuthorPosts