Technical SEO

Index Bloat on WordPress: Clean Up Tags, Attachments and Author Archives

By , Lead SEO & Co-founder 7 min read
An overflowing server archive with sun rays through dusty air, thousands of duplicate thin cards stacked on racks, half the aisle already cleared into recycling bins and the remaining shelves neatly lit in cyan, a crimson light on the main shelf

Index bloat is what happens when Google has far more of your URLs in its index than you have pages worth finding. A 40-page contractor site with 600 indexed URLs isn't 15 times more visible. It's a site where Google spends its attention on tag pages with one post each, image pages with no text, and an author archive that duplicates the blog.

On WordPress, three archive types cause most of it: tags, attachments and authors. WordPress creates all three automatically, and none of them ask permission.

Does index bloat actually hurt a small site?

Let me be honest about this first, because a lot of SEO advice oversells it.

Crawl budget (how many pages Google is willing to fetch from your site) isn't your problem. Google's crawl budget guide says it's written for sites with 1 million+ pages, or 10,000+ pages that change daily. A 40-page site gets crawled fine.

The real costs are quieter:

  • Weak pages compete with strong ones. A tag page called "roof repair" can rank instead of your actual roof repair service page, and convert worse.
  • Google judges the site as a whole too. Its guidance on core updates asks whether your site overall, not just individual pages, is helpful. Hundreds of empty archive pages don't help that impression.
  • Your reports turn to mush. When 80% of indexed URLs are junk, real indexing problems hide in the noise.

So the goal isn't "fewer pages for the sake of it." It's making sure every indexed URL is one you'd be happy for a customer to land on.

If you'd rather have someone find and fix this for you, send me your site for a technical audit quote. If you're happy to dig in yourself, here's the process.

How to find WordPress index bloat

Step 1: compare two numbers

In Google Search Console, open the Page indexing report (Indexing, then Pages). Note the number of indexed pages. Then count the pages you'd actually want found: services, locations, blog posts, key info pages.

If the indexed number is more than double your real count, you have bloat worth fixing. If it's close, stop here and go do something more useful.

Step 2: see what's in there

Click the "Indexed" count to view examples, or export them. Sort by URL and look for patterns:

URL pattern What it is
/tag/... Tag archive
/?attachment_id=123 or /my-photo/ under a post Attachment page (one image, no text)
/author/... Author archive
/2023/05/ Date archive
/page/2/, /page/3/ Paginated archives
/?s=... Internal search results

Also scan the "Not indexed" side. Google's report explains each reason, and a big pile under "Crawled - currently not indexed" often means Google already decided many of these pages aren't worth keeping. More on that status in my guide to crawled, currently not indexed.

Step 3: count the tags from the command line

If you have SSH access, WP-CLI (WordPress's command-line tool) shows you tag usage in one line with wp term list:

Terminal
# Read-only. Lists every tag with its post count, smallest first.
# Tags with a count of 0 or 1 are almost always thin pages.
wp term list post_tag --fields=slug,count --format=csv | sort -t, -k2 -n | head -50

On small-business blogs it's common for most tags to have one or two posts. Each of those is a near-copy of the post itself.

Fix 1: tag archives

Tags are useful when a tag groups five or more posts that a reader would actually browse. Below that, they're thin.

Your options, from gentlest to strongest:

  1. Noindex all tag archives. In Yoast SEO or Rank Math, set tags to "don't show in search results." The pages keep working for visitors, they drop out of Google, and they leave the sitemap.
  2. Merge and delete. Fold one-post tags into a category or a bigger tag. Redirect any deleted tag that has backlinks or traffic to its closest category.
  3. Stop making new ones. Agree on a short tag list with whoever writes posts. Most sites need categories, not tags.

I usually do option 1 immediately and option 2 over time.

Fix 2: attachment pages

Every image you upload to WordPress can get its own page, holding just that image. Yoast calls these attachment URLs and says they add little value, since Google may treat them as low-quality pages.

Here's the twist many guides miss. WordPress 6.4 switched attachment pages off, but only for new installations. Sites that existed before had the setting left on so nothing broke. If your site is older than late 2023, the pages are probably still live.

Check and fix it with WP-CLI:

Terminal
# 1 = attachment pages on, 0 = off. Older sites usually return 1.
wp option get wp_attachment_pages_enabled

# Turns them off. Attachment URLs then redirect instead of showing a page.
# Could break: a theme or gallery that links to attachment pages on purpose (rare).
wp option update wp_attachment_pages_enabled 0

If you use Yoast SEO, its Media pages setting (Settings, then Advanced, then Media pages) does the same job by redirecting attachment URLs to the file itself. Use one method, not both, and check a few old attachment URLs afterward with your browser's private window.

Fix 3: author archives

On a site with one author, /author/yourname/ is a carbon copy of your blog page. Yoast's guidance for single-author sites is to switch author archives off, which redirects them. On multi-author sites, keep them, and consider making each one a real bio page with a photo and credentials rather than a bare list of posts.

WordPress core also lists authors in its built-in sitemap at /wp-sitemap.xml (when no SEO plugin replaces it). If you're not using a plugin's sitemap, this snippet in a small custom plugin removes the users section, using the filter from the WordPress 5.5 sitemap announcement:

PHP
<?php
// Removes author (users) URLs from WordPress core's /wp-sitemap.xml.
// Could break: nothing. Author pages still load; they just leave the sitemap.
add_filter( 'wp_sitemaps_add_provider', function ( $provider, $name ) {
    return ( 'users' === $name ) ? false : $provider;
}, 10, 2 );

The other usual suspects

  • Date archives (/2023/05/): noindex them in your SEO plugin. Nobody searches for "your company May 2023."
  • Internal search results (/?s=): these should never be indexed. Paste one into the URL Inspection tool and confirm it carries a noindex.
  • Old PDFs and documents: they can't take a noindex tag in the page, so they need a header instead. Here's how to noindex PDFs with X-Robots-Tag.
  • Leftover pages from a hack: if you see thousands of URLs in a language you don't speak, that's not bloat. It's spam, and it needs a cleanup first.

Noindex, redirect or delete?

Situation Best fix
Page is useful to visitors but not to searchers noindex
Page has a close, better equivalent 301 redirect to it
Page is junk with no traffic or links Delete and return 410
Page is thin but on an important topic Improve it and keep it

One rule matters more than the rest: don't block these URLs in robots.txt while you wait. Google has to crawl a page to see its noindex. Block the crawl and the URL can linger in the index for months.

Vlad's take

I treat index bloat as a symptom, not a disease. The cleanup is usually an afternoon. The more useful question is why it happened, so it doesn't creep back: a writer adding six tags per post, a theme linking to attachment pages, a plugin generating archive pages nobody asked for. It's one of the checks in my the technical audit I run, and the small-site technical checklist covers the neighboring checks if you're doing it yourself.

Final Thoughts

Compare your indexed count to your real page count. If it's bloated, start with the three WordPress defaults: noindex thin tags, switch off attachment pages (older sites still have them), and redirect author archives on single-author sites. Then watch the Page indexing report shrink over the next few weeks.

If you'd like a second opinion on what Google has indexed, request a technical audit here. It starts at $750 for sites under 100 pages, and I reply with a plan and a fixed quote within one business day.

Index Bloat FAQs

What is index bloat in SEO?

Index bloat means search engines have indexed many more of your URLs than you have useful pages. Common causes on WordPress are tag archives, image attachment pages, author and date archives, internal search results and old PDFs. It rarely causes a penalty, but it lets weak pages compete with strong ones and hides real indexing problems in your reports.

How do I check how many pages Google has indexed?

Use the Page indexing report in Google Search Console, under Indexing, then Pages. It shows how many pages are indexed and why others aren't. The site:yourdomain.com search gives only a rough estimate, so don't rely on it. Compare the indexed count with the number of pages you actually want people to find.

Should I noindex tag pages in WordPress?

For most small business sites, yes. Tag pages with one or two posts are near-duplicates of those posts and rarely rank for anything useful. Noindex them in Yoast SEO or Rank Math, which also removes them from the sitemap. Keep a tag indexed only if it groups many posts that a visitor would genuinely browse.

Are WordPress attachment pages bad for SEO?

They're usually thin: one image and a title, with no real content. WordPress turned them off by default in version 6.4, but only for new sites. Older sites keep them on unless someone changes the wp_attachment_pages_enabled option or uses an SEO plugin setting to redirect them to the image file.

Want a second pair of eyes on your site?

Tell me what's going on in the technical seo audit questionnaire. I reply with a plan and a fixed quote within one business day.

Starting at $750 Start the questionnaire