|
/ Documentation /Developers Documentation/ Add “noindex” to Paginated Pages surerank_noindex_paginated_pages

Add “noindex” to Paginated Pages surerank_noindex_paginated_pages

Hook: surerank_noindex_paginated_pages

Description: This filter allows you to control whether paginated archive pages (like /page/2/, /page/3/, etc.) should be excluded from indexing by search engines. When enabled, it adds a noindex robots directive to paginated pages. Use this only when you intentionally want those pages excluded from search; pagination is not inherently duplicate content, and excluding pages can affect discovery.

Source: inc/frontend/archives.php

Usage: To enable the noindex tag on paginated pages, simply return true.

Example:

PHP
// Exclude paginated pages from search when this fits your site.
add_filter( 'surerank_noindex_paginated_pages', '__return_true' );

You can add the example code to your child theme’s functions.php file or use a plugin like Code Snippets to safely insert custom code. Using a code snippet plugin is recommended for easier management and to ensure the code remains active even if you switch themes.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
Table of Contents
Scroll to Top