Support » Plugin: Yoast SEO » How to noindex paginated page using Yoast

  • Resolved Damian Partha

    (@eddiepalomares)


    I just want to noindex paginated page while I’m using Yoast but cannot find an option for it. I did a Google search but cannot find any solution. How can I do that? Please don’t give theories on SEO.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Damian,

    Thanks for reaching out about your paginated archives.

    There is no option in the Yoast SEO plugin to add a noindex tag to paginated archives. According to Google, adding noindex on a page long-term will lead to them not following links on that page. More recent statements imply that if a page isn’t in their index, the links on it and from it can’t be evaluated at all. So with that, we do not recommend adding noindex to /page/2… 15 or further on paginated archives.

    However, if you still want to noindex paginated archive pages, you can use the filter here. You or your developer can customize it depending on your needs. You may also get in touch with your theme developer for further guidance.

    Thread Starter Damian Partha

    (@eddiepalomares)

    Is this the code that you are talking about?

    `add_filter( ‘wpseo_robots’, ‘my_robots_func’ );
    function my_robots_func( $robotsstr ) {
    if ( is_page() && is_paged() ) {
    return ‘noindex,follow’;
    }
    return $robotsstr;
    }

    Also, should we add this to functions.php?

    Thread Starter Damian Partha

    (@eddiepalomares)

    Sorry but I applied the codes that are found in the link that you have attached above and it is still returning content=’index, follow’ tags. The information in the URL that you have attached above is absolutely obsolete. It does not help.

    Plugin Support Maybellyne

    (@maybellyne)

    Yes. It should be added to the functions.php file. Unfortunately, I am unable to review your custom code as this is outside the scope of the support we provide here. However, you or your developer are free to customize the plugin to your needs. I’ll only advise trying your custom solutions first on a staging site. You may also get in touch with your theme developer for further guidance.

    Plugin Support Maybellyne

    (@maybellyne)

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.