Replies: 0
Hi, if we activate the SEO index blocking snippet, does the post/page will be reindexed after we unhide the post/page ?
Best regards!
Julian
function add_meta_for_search_excluded()
{
global $post;
if (false !== array_search($post->ID, get_option('sep_exclude', array()))) {
echo '<meta name="robots" content="noindex,nofollow" />', "\n";
}
}
add_action('wp_head', 'add_meta_for_search_excluded');