Forums

[Plugin: WP-PageNavi] Follow, noindex implementation (8 posts)

  1. perfectlover
    Member
    Posted 1 year ago #

    Hello, I want to implement follow, noindex tag with page 2 onwards, so that I do not have duplicate meta description problem with Google. When I use wp-pagenavi plugin Google suggested I have duplicate meta description.

    http://wordpress.org/extend/plugins/wp-pagenavi/

  2. scribu
    Member
    Posted 1 year ago #

    When I use wp-pagenavi plugin Google suggested I have duplicate meta description.

    It's very unlikely that Google suggested you have duplicate meta description specifically because you're using WP-PageNavi.

    Either way, adding a follow, noindex meta tag on archive pages sounds like a good idea.

  3. perfectlover
    Member
    Posted 1 year ago #

    Hi Scribu,

    All of my posts have unique meta description and so are categories. Problem comes when I have mydomain/category/page/2....so on... they show same meta description as mydomain/category/ , so I am looking to implement noindex on page/2... onwards.

    May be lester can implement this....

    Shob

  4. scribu
    Member
    Posted 1 year ago #

    This is outside the scope of the plugin.

    Just add this code in your theme's header.php file:

    <?php if ( is_archive() and is_paged() ) { ?>
    <meta name="robots" content="noindex, follow" />
    <?php } ?>
  5. perfectlover
    Member
    Posted 1 year ago #

    Thanks, above code did not work. May be some php guru can check the syntax.

  6. scribu
    Member
    Posted 1 year ago #

    The code works. You probably didn't insert it correctly.

  7. eggroup
    Member
    Posted 1 year ago #

    Thank you so much, scribu.

    It's working like a charm. Out of all SEO plugins I used, none of them actually took care of the category/page/2 etc.. problem.

    Thanks again.

  8. sweetasoundz
    Member
    Posted 1 year ago #

    Thanks man you are a star! I'm sure this is going to help lots of people affected by the Panda update.

    Is there any way the code can be altered to do the same thing for tag pages 2 and onwards?

Topic Closed

This topic has been closed to new replies.

About this Topic