Created
February 24, 2016 19:36
-
-
Save lukecav/7de2f731d14618f1702e to your computer and use it in GitHub Desktop.
Yoast SEO - Meta Robots Index Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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