Question regarding SEO
-
Hi, if we activate the SEO index blocking snippet, does the post/page will be reindexed after we unhide the post/page ?
Best regards!
Julianfunction 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');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.