Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(is_tag() || is_date()) {
- function noindex_tag() {echo '<meta name="robots" content="noindex,follow"/>';}
- remove_action('wp_head', 'rel_canonical');
- add_action('wp_head', 'noindex_tag');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement