Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Wordpress | Add no index to paginated pages
<?php if ( is_paged() ) { ?>
<meta name="robots" content="noindex,follow" />
<?php } ?>
Copy link

itsnahidhasan commented Aug 17, 2018

Hi, does it works? Did you use it? Thanks

Copy link

VictorSTM commented Aug 30, 2019

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