How To Remove Indexed WordPress Categories, Tags, & Attachment Links From Google

improve WordPress SEO
  • Save

This is a part of our Question and Answer series. If you have any questions related to Blogging, SEO, and/or WordPress, feel free to drop your queries via our contact form. Selected questions will be answered via a blog post. You can also check out previous questions answered here at ShoutMeLoud:

This is a question by Irfan Siddiqui from

Today’s Question:

“I am facing issues with site indexing. I own a WordPress blog and despite having ‘noindex’ tags on all of my tags and categories pages, Google has indexed WordPress tags and categories pages anyway. How can I deindex these tags and category pages?”

Google Indexing Issue with WordPress Attachments, Tags & Categories

This is one of the common indexing issues where Google indexes a few pages from your blog despite you adding a noindex tag. This is normal, and as soon as Google recrawls your site, it will respect the noindex tag and will deindex these parts of your blog.

This may take some time, but here are a few things which you can do to speed up the process.

Google indexed attachment and tags
  • Save

First, make sure your Robots.txt is not blocking access to the tags and categories pages.

If a few of your pages are already indexed in Google and you have added the noindex tag, Google may have stopped crawling of that part of your site and never see the noindex tag because Robots.txt is blocking access to crawlers.

Robots.txt exclusion is only useful for parts like Wp-admin and WP-content.

Moreover, it’s not a good idea to stop crawling pages like tags and categories using robots.txt as it will hamper the crawling of your deeper pages. The best way to stop indexing is by adding a noindex tag, which you can easily do by using WordPress SEO by Yoast.

Now in the case of Irfan’s blog, he has not blocked the tags and categories pages using Robots.txt, but before adding noindex tags, Google has already indexed those pages.

Here is a quick solution for anyone facing a similar problem.

First, you can check what pages of your site is indexed in Google by typing this search operator into Google:

  • (replace with your domain)

Make sure you use the noindex option for tags and categories pages in WordPress SEO by Yoast or the Meta Robots plugin.

If you are using the Thesis theme, you can find this option under Site option > Document head > Robots meta tag > Noindex categories and tags.

Now, usually our tags and categories pages are seen as a directory from a search engine’s point of view.

For example:


We can use the directory removal option to remove the complete directory from the noindex tag. Within 24-48 hours, all of your categories and tag pages will be out of Google’s index.

Remove indexed diretcory from Google Search
  • Save

So you need to add and and select “Temporarily hide directory”.

Hit “Submit Request” and now you’ve gotten rid of tags and categories pages from Google’s search index.

Related reading:

Getting rid of WordPress attachment ID links

This is another thing which not only creates duplicate content issues, but also adds low-quality content into Google Search. We can again fix this issue by using the Yoast SEO WordPress plugin.

Also, here is a practice that you should be following: When you upload an image, make sure your image link URL is either blank, or if you want to make it clickable, use the “Link to Image” option.

See this screenshot:

WordPress attachment index issue
  • Save

This will ensure no such links will be indexed in the future.

Here are configuration settings for plugins which I mentioned above:

WordPress SEO by Yoast setting:

WordPress SEO dashboard  > Advanced > Permalinks > Put a tick on “Redirect attachment URLs to parent post URL.”

Redierct attachment URL to Parents URL's
  • Save

That’s it and it will redirect all such >attachment_id= links to its respective post. In a few days, Google will deindex all such links.

I hope this quick solution will help anybody facing a similar issue. Do let me know if you’ve ever faced a similar WordPress indexing issue like Irfan. Did this solution fix the problem? Let me know in the comments!

Was this helpful?

Thanks for your feedback!
  • Save
Authored By
A Blogger, Author and a speaker! Harsh Agrawal is recognized as a leader in digital marketing and FinTech space. Fountainhead of ShoutMeLoud, and a Speaker at ASW, Hero Mindmine, Inorbit, IBM, India blockchain summit. Also, an award-winning blogger.

75 thoughts on “How To Remove Indexed WordPress Categories, Tags, & Attachment Links From Google”

  1. Doronize

    Thanks a lot on this post on how to deindex category and tags, but what if I change niche and want to deindex previous posts so the new ones will be indexed?

  2. Amanda Valle

    /blog, /blog/1, /blog/2, is blog considered a “category” folder? I ask because I don’t want to not have my blog indexed, but I of course have the same for every numerical blog/… after the top blog URL, and all these numerical pages are getting indexed. Really, I just want the top blog page indexed and each blog article.

    1. Harsh Agrawal

      These are “Subpages of archives”. You can noindex it from Yoast SEO plugin.

      You need to do it from here:

      Titles & Metas – Yoast SEO > Other > Sitewide meta settings > Subpages of archives

  3. Mohd Faizan Fahim

    I did as it is written, submitted the category and tag url to hide.

    Do I delete the tag and category XML sitemap too from google webmaster. And my tag url are even showing on Yandex and I never submitted the sitemap there.

    Thanks for everything. You and WpBeginners are the reason I have made my site all by myself.

  4. Khaled Saifullah

    Hi mate, thanks a lot for the tutorial. I’m starting a new blog and my categories and tags were getting indexed. However, now I’ve managed to remove them. 😀

  5. Bright Joe

    Hi Harsh bro,

    Thanks a lot for this guide, my pages archives were getting indexed in Google and in my sitelinks, “Page 3” appeared. I just requested to remove those links.

    Thanks a lot again! 😀

  6. Franklin

    Hi harsh

    I run a blogger blog, i want to know if categories can be indexed on blogger too

  7. Nosagie Nosa-Ero

    Thanks a lot Harsh, your guide was spot on. Is there any chance you can deindex some duplicate URLs already reported and removed from offending site, but just won’t leave Google search console.

    Here the guys are smart, outputting a 200 ok hearder response code, while the link shows a false 404 error page. This way Google isn’t able to detect the manipulation. What do you suggest?

  8. Marc Gray

    This just started recently for me after almost 300 posts….when I first launched my blog I had my home page being ranked regularly for a post. Anyway I never knew this method so I am hoping that it works….thank you for the help, mate. Good stuff!

  9. Vatsala Shukla

    Timely tip, Harsh. I was wondering how to remove the tags – found one during a routine Google checkup.

  10. Neelesh

    Hi Harsh,

    Thanks for the valuable post right guidance when I needed the most.

    Now I fixed it with the help of your post.

    Just added the url in the webmaster tools

  11. Julie

    Hi there! I really liked this article and it has been very helpful. I do have something I noticed though that maybe you could help with. I have my tags set as noindex, and they don’t show on my site index through google (site:domain). However, when I login to Google Webmaster tools they are still showing even for new content. I went so far as to even set all of them to 301 redirects. Which one is correct, and/or how do I fix this. My site is Thanks so much, any help is appreciated.

  12. Mukesh Joshi

    I usually work on micro-niche so I don’t find de-indexing tags useful. Maybe you are right about normal blogs. However, such type of issues I faced in development. Very well explained guide.

  13. Rob Clark

    Whats the point of tags and categories then if they should be de-indexed? Im sure other sites like ours, get a lot of organic traffic from tag url’s. So if we de-index these urls then result will be way less traffic which makes for less google experience to find sites.(not good in google eyes)

    I’m not sold on de-indexing tags and categories unless there is some kind of before and after proof that its best to de-index these urls.

    Has anybody done such a documented before and after proof?

    If it is proved I will follow like a sheep too.


  14. Vicky

    Hi, thanks for this. I read every post on your blog and have been trying to fix my tags and categories. I looked at Google SERPS and none of my tags are indexed and only one category. Does this mean it is safe to delete those that are not? I have fixed the duplicate issue with my categories but I feel like just getting rid of my tags, most go with only one or two posts. As it’s extra work to do the 301 just deleting would be a relief.

    Thanks for your input.

  15. sadik

    Nice article i also had the same issue with some of my tags and categories indexed by Google . but the problem is even though i used the remove URL to remove those indexed tags and categories they still show in Google search engine. what should i do?

  16. Mansoor Islam Mohammad

    Hi Harsh,
    I was always worried about this.Even in site links of my blog, there was an attachment URL which is of no use.I was wondering how to remove this. and finally found your article & it is helpful.Thanks!

    1. Harsh Agrawal

      Hey Mansoor,

      Glad you found it useful.

  17. Pelwal

    Hi harsh,

    Can a post on two categories cause duplicate content

    1. Harsh Agrawal

      If your categories are set as noindex, it won’t create duplicate content issue.

  18. eswar

    Can i use seo plugin to deindex wordpress tags & Categories attachment?

  19. Palashtd

    Hi Harsh
    I have used many tags in my blog posts. So I would like to know that will it barrier to apply my site in Google Adsense.

    1. Harsh Agrawal

      It should not be!

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top