Category filter for search results pagesSometimes it’s nice to have a category filter on the search results pages: a simple dropdown where you can choose…
Category title in the search results pageIf you’re using category restriction dropdown on your search form, here’s a bit of code that you can add to…
Changing the number of search results displayedA standard way to change the number of search results displayed is something like this: $myquery = "&posts_per_page=5"; $myquery =…
Filter search results by dateYou can specify date limits on searches with by_date search parameter. Here’s a link you can add to your search results…
Filtering results by categoryIn order to filter search results by category, use the following code: $url = get_bloginfo('url'); $url = esc_attr(add_query_arg(array('cat' => '10',…
How to display relevancy scoreRelevanssi stores the relevance score it uses to sort results in the $post variable. Just add something like <?php echo…
ModernizeModernize is a neat Premium theme that has a problem with Relevanssi. Relevanssi highlighting can cause problems on Modernize search…
Related searches featureJohn Blackbourn wrote a cool related searches feature for Relevanssi Premium. It’s included from version 1.7.4. In order to use…
Scroll result page to the search termRelevanssi can highlight search terms on the posts. But how about scrolling the page to show the location where the…
Showing the number of search resultsIf you want to show the number of search results found on the search results template, you can find the…