…a search term present. This was originally implemented for a restaurant search, where the users can search for restaurants based on search terms, opening hours and price category. The client wished to be able to use the opening hours and price category with and without a search term. The problem……is, Relevanssi doesn’t trigger without a search term. To fix that, you need to use a new filter hook relevanssi_search_ok. Add this code to your site: add_filter( ‘relevanssi_search_ok’, ‘search_trigger’ ); function search_trigger( $search_ok ) { global $wp_query; if ( ! empty( $wp_query->query_vars[ ‘price’ ] ) ) { $search_ok = true;…Deprecated: Relevanssi has long supported searching without a search term. These instructions are not necessary. Version 1.7.3 introduces the possibility to use Relevanssi without a search term. This is useful when you have extra query arguments that can be used to narrow the search, but which would be useful without…
2 Comments. Leave new
Hi,
I would like to buy the Premium version. I’m using the free version im my website but when I see the Relevanssi User Searches, the word with Portuguese characters are showing wrong (produção,imóveis) do you know if the premium version does not have this problem?
Thanks very much!
Raoni
Brazil
Are you using UTF-8 encoding? If you are, you should have no problems with either Premium or the free version. If you’re not using UTF-8, I give no guarantees of anything working (but you really should use UTF-8).
It’s possible the problem is not in Relevanssi, but in your database settings. See this knowledge base entry.