Linkworthy

Noindex WordPress Author Archives: 3 Things I Found Still Open

Thursday 12 November 2026

Noindexing WordPress author archives is a 1-line job, and plenty of guides stop there. But on my own sites the tag was only the first of 3 things to check. I run one WordPress site with about 32,000 posts and 195 authors, and 4 small ones with 1 author each. All of them noindex the author pages, and every one of them was still advertising those pages somewhere else. This is what I checked, what I found, and the code I tested.

Why bother with author archives

An author archive is a list of posts that already have their own pages. On a one-author site it’s close to a copy of your blog page. On a multi-author site like my 195-author one, that’s 195 extra pages listing content that’s indexed elsewhere. Neither adds anything for a search engine, so I noindex them and let the posts speak for themselves.

Step 1: the noindex tag (use the built-in filter)

The common advice is to echo your own meta tag in wp_head. It works, but WordPress already prints a robots tag of its own, so you end up with 2. I checked this on all 4 of my small sites, and each author page had both max-image-preview:large from WordPress and a separate noindex, follow from the theme. Search engines combine the two, so it isn’t broken, but it’s untidy.

Since WordPress 5.7 there’s a filter that adds to the existing tag instead:

add_filter('wp_robots', function ($robots) {
    if (is_author()) {
        $robots['noindex'] = true;
        $robots['follow']  = true;
    }
    return $robots;
});

I tested it by running a real author query and printing what wp_robots() outputs. Without the filter:

<meta name='robots' content='max-image-preview:large' />

With it:

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

Run on an ordinary post page, the same filter left the tag unchanged, so it only touches author pages. (I ran this on WordPress 7.1.4 and I haven’t tried older versions.)

Step 2: the sitemap still lists the authors

This was the one I’d missed. WordPress’s built-in sitemap has a section for users, and it lists every author whether or not their page is noindexed. On all 4 small sites, /wp-sitemap-users-1.xml returned 200, and on the one I counted it had 1 URL in it. On my big site, which uses Yoast, the author sitemap returned 200 and listed all 195 author URLs, even though every one of those pages had been noindexed since June (so I’d been telling search engines to index something and not to index it at the same time!).

Search Console has a status for exactly this clash: “Submitted URL marked ‘noindex'”. I haven’t looked to see whether mine shows it, so I won’t claim it does.

For WordPress’s own sitemap, the fix is another small filter that removes the users section:

add_filter('wp_sitemaps_add_provider', function ($provider, $name) {
    return $name === 'users' ? false : $provider;
}, 10, 2);

I tested it by registering the sitemap providers with and without it. Without the filter the registry held users, and with it the users provider was gone and only posts was left. If you use Yoast or another SEO plugin, it has its own setting for author archives and author sitemaps, which I haven’t tested here, so check yours rather than copying this filter.

Step 3: the author feed and the ?author=1 redirect

2 more doors stay open after steps 1 and 2. First, the author feed. A feed has no <head> for a noindex tag to go in, so /author/name/feed/ carries on returning 200. On one of my small sites it did. I wrote up what I do about feeds, which is return 410 Gone, in how to disable WordPress feeds properly.

Second, asking for /?author=1 redirects (301) to /author/ followed by the author’s name, and on my sites that name was identical to the account’s login name. That’s not an SEO problem, but it hands anyone a valid username to try on your login page. Noindex doesn’t touch it, so if you care, block or redirect ?author= requests too. I only observed the redirect and haven’t tested a fix.

My checklist

  • Tag: one robots tag, built with wp_robots, on author pages only.
  • Sitemap: no users section (or the plugin equivalent).
  • Feed: author feeds return 410, not 200.
  • Redirect: ?author=1 doesn’t hand out a login name.

The noindex tag is the easy part, and the 3 checks after it are where the “1-line job” turned into a few jobs (I only found them by looking at what each site was actually serving).