Skip to content

When and How to Use noindex in WordPress (Pages You Don’t Want in Google)

4 min read

When and How to Use noindex in WordPress (Pages You Don’t Want in Google) – noindex wordpress

Not every page on your site deserves to show up in Google. A noindex tag in WordPress tells the search engine, clearly and politely, “don’t index this one.” Used wisely, it cleans up your search presence and focuses your authority on the pages that actually bring in clients. Used carelessly, it can hide exactly what you meant to promote. Let’s look at when noindex is worth it and how to apply it without shooting yourself in the foot.

What noindex actually means

Noindex is an instruction you add to a page to tell search engines not to include it in results. Technically, it appears either as a <meta name="robots" content="noindex"> tag in the <head>, or as an X-Robots-Tag HTTP header.

The key distinction: the page stays accessible. Visitors can open it and Google can read it — it just promises not to display it in search. That makes noindex ideal for content that needs to exist but has no business showing up in the results list.

When to use noindex in WordPress

The rule is simple: apply noindex to pages that don’t answer a real search and don’t bring you quality traffic. In WordPress, the usual suspects are:

  • The “Thank you” page shown after a form submission;
  • Internal search results (/?s=...), which spawn endless thin pages;
  • Low-value archives: by author, by tag, sometimes by date;
  • Transactional WooCommerce areas: cart, checkout, customer account;
  • Duplicate pages or leftover test versions from development.

On the other hand, pages describing your services, blog posts, and sales pages should stay indexable. They’re the engine of your organic traffic, so leave them happily in Google.

How to add noindex, in practice

The cleanest way is through an SEO plugin. In Rank Math or Yoast, open the page in the editor, go to the SEO section, and under “Advanced” tick the no-index option. The plugin writes the correct tag into the <head> without you touching any code.

For entire content types (say, all tag archives), SEO plugins offer global settings where you can turn off indexing from one place. That’s safer than going page by page and reduces the risk of missing something.

If you prefer manual control, you can use the theme’s wp_robots filter, but for most sites a plugin is plenty and far harder to break.

Checklist of WordPress pages that get noindex to be excluded from Google.Noindex WordPressThank-you pageInternal searchThin archivesCart and checkoutTest pages
Typical pages you mark with noindex in WordPress.

noindex mistakes that cost you traffic

This is where damage usually happens, typically by oversight. The most common scenario: a site launched from a staging environment keeps noindex set globally and, after going live, slowly vanishes from Google without anyone realizing why.

The second trap is more subtle: you combine noindex with a “Disallow” rule in robots.txt. It sounds logical, but it’s wrong — if you block crawling, Google never gets to read the noindex tag, so the page can stay in the index. Let the page be crawled, so the bot can see the instruction.

The third mistake is putting noindex on an important page “just to test something” and then forgetting. A free audit catches exactly these slips before they cost you months of lost traffic.

noindex vs. robots.txt: don’t mix them up

They’re two different tools. Robots.txt controls whether a bot is allowed to access a page. Noindex controls whether an accessed page can appear in results. The first manages crawling, the second manages indexing.

For pages you want out of search, the correct choice is noindex, not blocking in robots.txt. Google’s official documentation explains in detail how the noindex directive works and why the wrong combination doesn’t produce the result you want.

If all this feels like a maze, that’s precisely where technical SEO steps in: making sure Google sees the good pages and ignores the useless ones, with no accidents.

Conclusion: use noindex like a scalpel, not an axe

Noindex is an excellent tool as long as you apply it selectively. Make a short list of the pages that have no business being in Google, exclude them cleanly through an SEO plugin, and periodically check that you haven’t accidentally flagged a valuable page. A site with clean indexing is easier for Google to understand — and, over time, easier to rank.