• Resolved tecmint

    (@tecmint)


    Hi,

    All my paginated comments page have noindex and nofollow tag:

    <meta name=”robots” content=”noindex, nofollow, max-image-preview:large” />

    I want search engines index my comments paginated pages, how to do that? how to remove these noindex and nofollow tags.?

    Also, does paginated comments get indexed in search engines?

    • This topic was modified 2 years, 1 month ago by tecmint.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Prabhat

    (@prabhatrai)

    Hi @tecmint,

    Thanks for reaching out!

    Could you confirm if you only want to remove the noindex and nofollow tags from the paginated comments pages or all the paginated pages? If you want to remove from all the paginated pages, please follow the below steps:

    1. Go to your WordPress Dashboard > All in One SEO > Search Appearance.
    2. Click on the Advanced tab.
    3. Disable the Use Default Settings for Global Robots Meta option – https://a.supportally.com/Tiqoou
    4. Uncheck No Index Paginated and No Follow Paginated options – https://a.supportally.com/buoQM0
    5. Scroll to the top or bottom and Save Changes and see if you get the desired output.

    In case you want to remove the noindex and nofollow tags only from the paginated comment pages, you can modify and use this filter to achieve this: https://aioseo.com/docs/aioseo_robots_meta/

    Here’s how you can add the filter to the website: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/

    Also, does paginated comments get indexed in search engines?
    It is unlikely for search engines to index paginated comment pages but they can index them if the comments are deemed helpful.

    Feel free to let me know if you have any questions.

    Thanks!

    Thread Starter tecmint

    (@tecmint)

    @prabhatrai

    Could you please give me the exact filter code to set the index tag for all paginated comments for posts? I am not familiar with WordPress coding…

    Plugin Support Prabhat

    (@prabhatrai)

    Hi @tecmint,

    Please add the below filter to your website and see if you get the desired output –

     add_filter( 'aioseo_robots_meta', 'aioseo_filter_robots_meta' );
     function aioseo_filter_robots_meta( $attributes ) {
     ????$slug = ! empty( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '';
     ????if (
     ????????is_singular( 'post' ) &&
     ????????false !== strpos( $slug, "/comment-page-" )
     ????) {
     ????????$attributes['noindex']  = 'index';
     ????????$attributes['nofollow'] = 'follow';
     ????}
     
     ????return $attributes;
     }

    Here’s how you can add the filter –

    https://aioseo.com/docs/how-do-i-use-your-api-code-examples/

    If the filter doesn’t help, please share the URL of a paginated comments page of your website so I can have a closer look.

    I’m looking forward to hearing back from you.

    Thanks!

    • This reply was modified 1 year, 11 months ago by Prabhat.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Paginated Comments Pages have noindex and nofollow tag’ is closed to new replies.