Forums › Forums › Search & Filter Pro › S&F with Relevanssi Premium
Tagged: filter, relevanssi, wordpress
- This topic has 17 replies, 2 voices, and was last updated 5 years, 7 months ago by Trevor.
-
Anonymous(Private) February 27, 2019 at 1:05 pm #203495
I’ve a website with Relevanssi enabled. In the header i’ve got a simple search fields. The results are displayed on the search.php page. What would like to know is how to do the following:
1) Using the S&F plugin only add an appropriate filter ([searchandfilter]) to the search result page after a search is been made. The results are displayed via a WP_Qeury.
2) Change the language of post type filter to English. Cannot find this in the settings.Anonymous(Private) February 28, 2019 at 11:13 am #203588It’s very simple:
<form action="<?php echo site_url(); ?>" class="searchform" id="searchform" method="get" role="search"> <input type="text" id="s" name="s" value="" placeholder="Search... + Enter" /> <span class="icon"><i class="fas fa-search"></i></span> </form>
Trevor(Private) March 1, 2019 at 11:42 am #203676This will give you an idea of how to edit that form to use our plugin:
<form action="<?php echo site_url(); ?>search-results/" class="searchform" id="searchform" method="get" role="search"> <input type="text" id="s" name="_sf_s" value="" placeholder="Search... + Enter" /> <span class="icon"><i class="fas fa-search"></i></span> </form>
Note that I have changed the action to point to a slug named
search-results
. This would also need to be set in the form design (edit our form and on the Display Result settings tab). I have also edited the name froms
to_sf_s
.I think that should then work?
-
AuthorPosts