Skip to content

Instantly share code, notes, and snippets.

@rupert-ong
Created November 19, 2012 14:57
Show Gist options
  • Save rupert-ong/4111106 to your computer and use it in GitHub Desktop.
Save rupert-ong/4111106 to your computer and use it in GitHub Desktop.
Wordpress: Page Indexing
<?php if ( (is_home() && (!$paged || $paged ==1)) || is_page() || is_single() || is_category()) :?>
<meta name="googlebot" content="index,archive,follow,noodp" />
<meta name="robots" content="all,index,follow" />
<meta name="msnbot" content="all,index,follow" />
<?php else : ?>
<meta name="googlebot" content="noindex,noarchive,follow,noodp" />
<meta name="robots" content="noindex,follow" />
<meta name="msnbot" content="noindex,follow" />
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment