Forums Forums Search & Filter Pro Multiple Search Forms

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

    Are you asking if you can have more than one form on the page at the same time? And, if so, you you expect them to go to the same results page?

    Anonymous
    #116812

    Yes indeed, I want to have the same result page for multiple forms on the same time.

    Trevor
    #116823

    If 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.

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