Forums › Forums › Search & Filter Pro › Multiple Search Forms
Tagged: multiple, search form
- This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by Trevor.
-
Anonymous(Private) June 26, 2017 at 10:07 am #116772
I want to have multiple search forms on my website while displaying the results using a shortcode. I have found the following documentation but I dont know how to use it (https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Multiple_Search_Forms_8211I_don8217t_want_all_my_results_looking_the_same).
I am displaying a searchform using the following code:
<?php echo do_shortcode('[searchandfilter id="62"]'); ?>
I am displaying the results using the following code:
<?php echo do_shortcode('[searchandfilter id="62" show="results"]'); ?>
Now I want another search form with only a search field, but how can I manage so it can use both the forms at the same time?
Trevor(Private) June 26, 2017 at 1:33 pm #116823If you are using the shortcode method, and you want one form to be a simple search text box, then the other form must also have a search box (even if you hide it with custom CSS). In effect, you have a small search form and a big search form, the small form is a sub-set of the big search form.
If this then directs to another (different) page, that can have ONLY the big form and the search results shortcode for the big form.
You cannot send data from both forms at once though. It is EITHER the small form or the BIG form. This will change in V3 of our plugin, when what you want to do becomes very much easier.
-
AuthorPosts