meta robots, wp_robots, and search results pages with noindex
-
Is there some kind of nuclear option to just completely remove this meta tag from a specific page or search results?
<meta name='robots' content='follow, noindex' />
Here is what I have been trying with no success:
function indexSearch() { if( is_search()) { //add_filter( 'wpseo_robots', '__return_false', 10, 1 ); // this used to be what I used for the Yoast Plugin add_filter( 'wp_robots_no_robots', '__return_false', 10, 1 ); remove_filter( 'wp_robots', 'wp_robots_noindex_search' ); add_filter( 'wp_robots', '__return_false', 10, 1 ); remove_filter( 'wp_robots', 'wp_robots_no_robots' ); } } add_action( 'wp', 'indexSearch' );
Thanks in advance for any help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘meta robots, wp_robots, and search results pages with noindex’ is closed to new replies.