Posted on

Yoast SEO compatibility

Starting from versions 2.4.0 (Premium) and 4.3.0 (Free), Relevanssi doesn’t index posts that have been marked “noindex” in the Yoast SEO settings (“Allow search engines to show this Post in search results?”). If the “noindex” setting is in the default value or set to explicit “yes”, Relevanssi indexes the post.

If you want Relevanssi to disregard the Yoast SEO “noindex” setting, you can add this to your theme functions.php:

add_action( 'init', function() { remove_filter( 'relevanssi_do_not_index', 'relevanssi_yoast_noindex', 10 ); }, 99 );

This bit of code will disable the Yoast SEO “noindex” filter from Relevanssi.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.