How to use different result template for each search form

Forums Forums Search & Filter Pro How to use different result template for each search form

Viewing 7 posts – 1 through 7 (of 7 total)
  • Anonymous
    #232616

    I would like to make custom result.php for each different search forms, but I am not sure how to get each form to direct to that certain php file.

    Thank you

    Trevor
    #232625
    This reply has been marked as private.
    Trevor
    #232627

    Are you using our Shortcode display results method:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/

    In the customising section, you can create results templates for individual forms (using their ID numbers) and each language of the form has its own ID number, thus allowing you to make individual language templates that you can edit your self. The strings are found in the templates.

    Anonymous
    #232629
    This reply has been marked as private.
    Anonymous
    #232631

    We were using a php file with the search form id as template before (this was a couple years back and it seems like things have changed. Will look into the shortcode method

    Anonymous
    #232633

    template name would just be [ID].php? nothing else?

    Trevor
    #232635

    That is correct. Stored in the correct folder in the child theme.

Viewing 7 posts – 1 through 7 (of 7 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.