Forums Forums Search & Filter Pro Issue customizing results with multiple search forms

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #176755

    Hi there –
    Many thanks again for your help yesterday. Following this great success, I felt a bit adventurous today and started setting things up for a different template to be used for another search form, following your guidelines (https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results).

    I created a php file (blogs.php) with the exact same content as the results.php file, and put it into the search-filter folder in my child theme. I created a new form and have added the shortcodes ([searchandfilter id=”8959″] and [searchandfilter id=”8959″ show=”blogs”]) to my testpage (cusp.ac.uk/testneu).

    Problem: It doesn’t seem to recognise my blogs.php file, and only displays my results when changing ‘show=”blogs”‘ to ‘show=”results”‘.

    Question: Is there a form setting I am missing? I.e. Do I need to set it up somewhere in the form itself? (Side info: Whenever I try to manually change it in the shortcodes window (right side of the form set-up), it goes back to the ‘show=”results”‘.

    With kind regards –
    Linda

    Trevor
    #176811

    The file either has to be named results.php OR …

    Let us assume that the form ID is 1234 (from the shortcode you see in the form, or indeed the post ID of the form), then if you named the file 1234.php, it would use that. The results shortcode you use does not change.

    Anonymous
    #176813

    And here it works – Many thanks. Linda

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