Forums › Forums › Search & Filter Pro › How to use this on my own template
- This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by Anonymous.
-
Anonymous(Private) June 15, 2015 at 1:11 pm #19559
Hi,
I am using the made theme on my website: http://themeforest.net/item/made-responsive-reviewmagazine-theme/2557495
I bought this plugin, the plugin works, but it will always redirect me to a ‘search result page’.
Is it possible that I can add this filter for an template from made or a table which is made in Tablepress?
Thanks in advance,
Regards
Anonymous(Private) June 15, 2015 at 6:33 pm #19594Hi Bob,
Yes, that’s definitely possible, it just requires a couple of steps.
There are some good instructions in the documentation, here:
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/docs/display-results/with-a-shortcode/1. First you create a new template for displaying your search results (you can start with the default results.php as a foundation if you like, and customize it however you want – that file is found in the plugin’s Templates folder). Your NEW template file should be named with the ID number of your filter form (e.g. my filter form is ID 102, so my template is 102.php), and placed in a NEW folder that you’ll create in your THEME folder, name the folder ‘search-filter’ – the plugin will look in this new folder first for templates.
2. This template file just handles displaying the form and the results, so you’ll also need to place the SHORTCODE that calls this template into the PAGE template, and change the METHOD for displaying the results in the Settings for the form/filter to “shortcode” (instead of “archive”).
SO let’s say you have a PAGE on your site for products, with some content at the top of the page maybe, and your product list (and filters) below. ON that Page paste your shortcode for displaying the form and results, which you can copy from the Filter’s settings….for example, I use:
[searchandfilter id=”102″ show=”results”]
Read the documentation linked to above, hopefully it will make sense, if not ask more questions and I’ll try to help. 🙂
-
AuthorPosts