Category Archives: Knowledge Base

Knowledge base contains information on how to use Relevanssi. There are lots of features that are documented in the knowledge base. Here’s an index to the knowledge base, with all the entries sorted under different topics.

The most important troubleshooting trick

Advanced hacking, filter hooks

Search results pages

Search more



Plugin compatibility

Theme compatibility

Restricting Did you mean suggestions to one post type

Sometimes it may be necessary to restrict the Did you mean suggestions Relevanssi serves to just one post type. There’s no option for that, as by default the Relevanssi database the Did you mean suggestions use as a source (this only applies to Premium, that is) doesn’t have any information about the post types the […]

Results are in strange order

If best results don’t come up first and changing weighting settings doesn’t seem to make any difference, there couple of things you can do. Is Relevanssi active? The first thing is to check if the results are actually provided by Relevanssi. If you disable Relevanssi, do the results change? Do you see Relevanssi-generated excerpts? There […]

Advanced Custom Fields Relationship fields

I’m working on a website and i’m use A LOT the Relationship field au ACF. So on my pages are displayed informations of some related custom post. Is there a way to get that working in the search ? With some help from me, the person who asked this question on the support forums […]

Divi Page Builder and cleaner excerpts

If you’re using the page builder in Divi, it’ll work with Relevanssi, but the excerpts may look ugly because of the shortcodes the page builder uses to format the pages. The solution is, however, easy: just remove the Divi shortcodes before the excerpt is built. The following code will remove all shortcodes that start with […]

Indexing custom post statuses

If you’re using custom post statuses, Relevanssi requires some tinkering. By default, Relevanssi only handles posts that are of status publish, pending, draft or private. Relevanssi has a filter that lets you add more statuses to the list of acceptable statuses for Relevanssi: function rlv_add_status($status_array) { $status_array[] = "new_status"; return $status_array; } add_filter(’relevanssi_valid_status’, ‘rlv_add_status’); add_filter(’relevanssi_valid_admin_status’, […]

Yoast Local SEO compatibility issues

Yoast Local SEO plugin breaks Relevanssi search. It enhances the search by adding meta queries. Unfortunately they don’t work with Relevanssi. The fix is simple, though: add_filter(’relevanssi_modify_wp_query’, ‘rlv_meta_fix’, 99); function rlv_meta_fix($q) { $q->set(’meta_query’, ”); return $q; } This clears out the meta_query.

Membermouse support for Relevanssi

If you’re using MemberMouse to manage memberships on your site, having Relevanssi co-operate with MemberMouse is easy. Just add the following code to your theme functions.php and your protected content will not be displayed to users without access to the content: add_filter(’relevanssi_post_ok’, ‘membermouse_relevanssi_ok’, 20, 2); function membermouse_relevanssi_ok($post_ok, $doc) { if (function_exists(’mm_access_decision’)) { $post_ok = mm_access_decision(array("id"=>$doc, […]