Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Yoast SEO - Meta Robots Index Fix
add_filter('wpseo_robots', 'yoast_no_home_noindex', 999);
function yoast_no_home_noindex($string= "") {
if (!is_singular('position')) {
$string= "index,follow";
}
return $string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.