Enhanced search results in Yoast SEO: Local

Last update: 11 August, 2018
This guide is written for advanced users and developers.

One of the hidden features of Yoast SEO: Local is enhancing your website's internal search results with your location content. In rare cases, the enhanced search results can conflict with other plugin or theme features. Therefore, Yoast SEO: Local version 7.1 introduced developer filters to disable these enhancements.

Developer filter

The filters accept a true or false boolean.

To disable searching in location meta fields use:
add_filter( 'yoast_local_seo_enhanced_search_enabled', '__return_false' );

To also disable markup for found locations use:
add_filter( 'yoast_local_seo_enhanced_search_result_enabled', '__return_false' );

Was this article helpful? ·