7 replies
  • SEO
  • |
How can I prevent my tag pages from showing up in Google's search listings? The Last time I created a website, I use tags at the bottom of my post pages and those pages were indexed in Google by their tags. I am about to create a new site, and I would like to prevent Google from indexing the pages by tags, because they don't show up properly in the Search Engines. Please help!
#tags #wordpress
  • Profile picture of the author yukon
    Banned
    This should block all search engines from your Tag pages.

    Add the code someplace between <head> & </head> tags.

    This assumes your not running some kind of seo plugin that overwrites the code below, or have any other tags in the header.php telling google it's ok to index the page. You'll have to check these things on your own WP-Theme.



    Code:
    <?php if ( is_tag() ) { ?>
    <meta name="robots" content="noindex" />
    <?php } ?>
    {{ DiscussionBoard.errors[3235873].message }}
    • Profile picture of the author Terrence Taitt
      Isn't there something missing from the PHP code you wrote, after the word "If", If (blank) is tag? Please explain what this code will tell the SE bots.
      {{ DiscussionBoard.errors[3236001].message }}
  • Profile picture of the author yukon
    Banned
    The code works 100%, I've tested on my own WP site before I posted here.

    The php code will only allow the meta tag to display on a WP-Tag page.

    This code:
    <meta name="robots" content="noindex" />
    Is telling all search engines to leave the page & don't index the content.

    More info about blocking a search engine.

    Official Google Webmaster Central Blog: Using the robots meta tag
    {{ DiscussionBoard.errors[3236038].message }}
  • Profile picture of the author madison_avenue
    You can download the Robots Meta plugin and then select the prevent indexing option for tag archives.
    {{ DiscussionBoard.errors[3236323].message }}
    • Profile picture of the author Terrence Taitt
      How do I do the same in the All In One SEO plugin?
      {{ DiscussionBoard.errors[3236437].message }}
      • Profile picture of the author madison_avenue
        Originally Posted by Terrence Taitt View Post

        How do I do the same in the All In One SEO plugin?
        all-in-one seo also has an option to noindex tags. Go to settings and tick the noindex for Tag Archives box.
        {{ DiscussionBoard.errors[3236471].message }}
        • Profile picture of the author scott g
          Do you guys care at all how things actually WORK?!?

          Yukon was trying to help you lost souls LOL!

          P.s. SEO Ultimate WP Plugin is better
          Signature
          scott g
          "Whatever the mind can conceive and believe, the mind can achieve."

          {{ DiscussionBoard.errors[3237026].message }}

Trending Topics