When you have problems with Relevanssi, these are the first steps to take:
- Make sure you have the latest version of Relevanssi. If not, upgrade.
- Try deactivating the plugin and reactivating it.
- Are you using Yoast Local SEO? Read this.
- Try deleting the plugin and reinstalling it from scratch.
If that doesn’t help, then approximately 90% of the time the problem is the same: there’s a
query_posts() call on the search results page.
Any calls to query_posts() on search results template make Relevanssi fail silently. You’re not getting results from Relevanssi any more. This is unpleasant, but something I can’t really fix, considering that WordPress doesn’t offer any official way to replace search results and the way Relevanssi is coupled with WordPress is something of a hack. So, something simple like this can throw Relevanssi off.
If you’re having problems with Relevanssi, the first step is to check your search results page, usually search.php. See if there’s a call to query_posts() and if there is, comment it out. In most cases that is enough to fix the problem.
It’s not always
query_posts(). Appearance of
new WP_Query() is another sign of trouble, or
$wp_query->get_posts();. Anything that queries the database for new posts is trouble for Relevanssi.