Skip to content

Instantly share code, notes, and snippets.

@nielsenrc
Created September 9, 2015 20:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nielsenrc/72b4458288780f51a914 to your computer and use it in GitHub Desktop.
Wordpress | Add no index to paginated pages
<?php if ( is_paged() ) { ?>
<meta name="robots" content="noindex,follow" />
<?php } ?>
@VictorSTM
Copy link

Works perfectly, to avoid indexing the pagination

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment