Skip to content

Instantly share code, notes, and snippets.

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

itsnahidhasan commented Aug 17, 2018

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

@VictorSTM
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