Forums › Forums › Search & Filter Pro › Issue customizing results with multiple search forms
- This topic has 2 replies, 2 voices, and was last updated 6 years, 10 months ago by
Anonymous.
-
Anonymous(Private) May 9, 2018 at 10:03 pm #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 –
LindaTrevor(Private) May 10, 2018 at 11:42 am #176811The 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.
-
AuthorPosts