Forums › Forums › Search & Filter Pro › Does search and filter pro works with the default WP search?
- This topic has 4 replies, 2 voices, and was last updated 5 years, 5 months ago by Anonymous.
-
Trevor(Private) July 9, 2019 at 11:26 am #215772
You would need to convert the default search into one that directs to a Search and Filter form. In your theme, is default search in the header, or maybe the menu? If so, is the PHP code for that in a theme template file either called header.php or one called searchform.php?
I would need to see what that looks like, and also advise you to be using a child theme of the parent theme.
Trevor(Private) July 9, 2019 at 3:16 pm #215810The action might need to be changed to point to a specific results page, if you are using a slug in the form settings in the search and filter form. So, like this:
action="<?php echo esc_url( home_url( '/' ) ); ?>search-results"
and, in that case the ‘name’ used in the form would change from
s
to_sf_s
OR
If your search and filter form results URL has an sfid in it, then only the ‘name’ of the form would change to something like:
sfid=46314&_sf_s
where the ID is the ID number of your form.The search and filter form MUST have the search box in it as well, AND the theme search will not work (together with our search form) ON the results page, as they do not actually talk to each other.
-
AuthorPosts