Created
September 9, 2015 20:21
-
-
Save nielsenrc/72b4458288780f51a914 to your computer and use it in GitHub Desktop.
Wordpress | Add no index to paginated pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( is_paged() ) { ?> | |
<meta name="robots" content="noindex,follow" /> | |
<?php } ?> |
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
Hi, does it works? Did you use it? Thanks