Skip to content

Noindex in WordPress: How to Find, Add and Remove the Noindex Tag

Noindex in WordPress: How to Find, Add and Remove the Noindex Tag

Noindex in WordPress is a rule that asks search engines to keep a page out of their results. A page can pick it up from the Reading setting, an SEO plugin, a code snippet, or a server header.

We tested every source on WordPress 7.1.3 in October 2026, with core WordPress, Rank Math 1.0.280, Yoast SEO 28.7, and the Code Snippets plugin. For each one we read the robots meta tag and the response headers that the page produced. The Search Console steps come from Google’s own help pages.

This guide shows how to find where a noindex tag comes from, remove it, and add it when you want it. It also separates noindex from robots.txt, which many guides mix up, and shows how to confirm the result in Search Console.

What Is Noindex in WordPress and Where Does It Come From?

Noindex in WordPress is a rule that tells search engines to keep a page out of their results. It sits either in a robots meta tag in the page head or in an X-Robots-Tag HTTP header. Google’s block indexing guide says it will drop such a page “entirely from Google Search results”.

WordPress itself, your SEO plugin, your theme, and your server can all add the rule. That is why one stray setting can hide a page, a post type, or a whole site.

There are four common sources:

  • Reading setting: The “Discourage search engines from indexing this site” box adds a robots meta tag to every page.
  • SEO plugin, one page: Rank Math and Yoast SEO each have a per-page choice that prints noindex for that page.
  • SEO plugin, one type: Both plugins can set noindex for a whole post type, such as all posts, and a per-page choice can override it.
  • Code or header: A snippet, a theme file, or a server rule can add a meta tag or an X-Robots-Tag header, and no settings screen will show it.
Where noindex in WordPress comes from

The Reading box is the one that surprises people, because it covers the whole site. The WordPress Reading screen documentation says the box adds a noindex, nofollow robots tag. It also says it is up to search engines to honor the request.

On our test site every page printed that tag after we ticked the box. The built-in sitemap at /wp-sitemap.xml returned a 404 at the same time.

Noindex vs robots.txt: Do Not Mix Them Up

A robots.txt file controls crawling and a noindex rule controls indexing. Google must crawl a page to see its noindex rule. So a robots.txt block hides the tag from Google. Never block a page in robots.txt when you want its noindex rule to work.

Noindex compared with robots.txt

Google’s robots meta tag documentation says the URLs containing those rules “cannot be disallowed from crawling”. Search Console shows the same trap. When robots.txt blocks a page, the URL Inspection help page says Indexing allowed always shows Yes, because Google cannot see a noindex directive.

That is why removing a Disallow line from robots.txt will not remove a noindex tag. The two files and settings are separate. On our test site the Reading setting changed the robots meta tag and left robots.txt alone.

If a page you want noindexed is blocked in robots.txt, fix that first. Remove the Disallow line for that URL so Google can crawl the page and read the tag. You can view your live file at /robots.txt on your own domain.

Yoast SEO behaved differently in one detail. While the Reading box was ticked, our Yoast test site served its robots.txt file and its sitemap with an X-Robots-Tag header of “noindex, follow”.

How to Find the Noindex Tag on a WordPress Page

Open the page, view its source, and search for the word noindex. The tag looks like a robots meta tag in the page head, and a header version shows only in the response headers. Check both, because a page can be noindexed by either one.

Work through these checks in order:

  1. View the page source: Right-click the page, choose View Page Source, and search for “robots”. A match with noindex in its content value is your tag. Our guide to adding meta tags in WordPress explains the other head tags you will see there.
  2. Check the response headers: Open your browser’s developer tools, click the Network tab, reload the page, and click the first request. Look under Response Headers for x-robots-tag.
  3. Look at the Reading setting: Go to Settings > Reading and read the Search engine visibility line. A ticked box means every page is noindexed.
  4. Open the page in your SEO plugin: In Rank Math, click the plugin icon in the editor and open the Advanced tab. In Yoast SEO, open the sidebar and expand Advanced and then read the “Allow search engines to show this content in search results?” list.
  5. Check the site-wide plugin settings: Both plugins can noindex a whole post type, and a per-page choice overrides it. In our Rank Math test, a post set to Index stayed indexable while every other post printed noindex.
  6. Search your code: Look for wp_robots, X-Robots-Tag, and noindex in your active snippets, theme files, and server rules.

If you still cannot find the source, deactivate your SEO plugin and your snippets one at a time. Reload the page source after each change, because the step that makes the tag disappear points to the culprit. Our guide to checking for plugin conflicts shows a safe way to do that.

Each source prints something a little different, which helps you tell them apart. This is what our test sites printed:

SourceWhat the page printed
Reading setting<meta name='robots' content='noindex, nofollow' />
Rank Math, page or type<meta name="robots" content="follow, noindex"/>
Yoast SEO, page or type<meta name='robots' content='noindex, follow' />
wp_robots code snippet<meta name='robots' content='max-image-preview:large, noindex' />
Header code snippetx-robots-tag: noindex, follow in the HTTP response

How to Remove the Noindex Tag in WordPress

To remove the noindex tag in WordPress, find which source adds it and switch that source off. Start with the Reading setting, because it affects every page on the site. Then check the page, the site-wide plugin setting, and any code that adds a tag or a header.

  1. Untick the Reading box: Go to Settings > Reading, untick “Discourage search engines from indexing this site” and click Save Changes. After we cleared it, our test page printed its normal robots tag again.
    Search engine visibility setting on the WordPress Reading screen
  2. Set Rank Math to Index: Open the post, click the Rank Math icon, open the Advanced tab, and tick Index instead of No Index. After we saved, our test post printed “follow, index” again.
    Rank Math Robots Meta group with Index ticked
  3. Set Yoast SEO to the default: Open the post, open the Yoast SEO sidebar, expand Advanced, and choose the Yes option. Our test post went back to “index, follow”.
    Yoast SEO list that allows search engines to show a post
  4. Fix the site-wide setting: In Rank Math, go to Titles & Meta, open the post type and untick No Index or switch the Robots Meta option off. In Yoast SEO, go to Settings > Content types and switch Show posts in search results back on.
    Yoast SEO switch that shows posts in search results
  5. Remove code or headers: Deactivate the snippet, or delete the line from your theme, that adds the tag or the header. In our test, deactivating the two snippets removed both the meta tag and the header.
    Code Snippets list with the snippets that add noindex

Note: Clear your caching plugin and any CDN cache after each change. Otherwise you may keep seeing the old tag when you view the source.

After the tag is gone, you can ask Google to look again from Search Console, which the last section covers. If you also want the site found sooner, see our guide to submitting your website to Google.

How to Noindex a Page in WordPress

To noindex a page in WordPress, set the robots option in your SEO plugin, or add a small snippet that prints the tag. Both ways put the same robots meta tag in the page head. Use the plugin when you can, because the rule stays visible next to the page.

Common candidates for noindex are thank-you pages, internal search results, and thin archives with little unique content. Never noindex a page that you want to rank. Author archives are another type you may want to noindex, and our guide to hiding the author in WordPress covers them.

Rank Math: Noindex One Page or a Whole Post Type

Rank Math has a Robots Meta group on the Advanced tab of every post and page. It also has a type-wide option under Titles & Meta. Rank Math’s own Advanced tab guide covers the other fields on that tab.

  1. Open the Advanced tab: Edit the page, click the Rank Math icon in the top bar, and open the Advanced tab.
  2. Tick No Index: Tick No Index in the Robots Meta group and update the page. Our test post then printed <meta name="robots" content="follow, noindex"/>.
    Rank Math Robots Meta group with No Index ticked

To noindex every post, go to Rank Math SEO > Titles & Meta and open Posts. Switch on Post Robots Meta, tick No Index and save. Every post on our test site printed noindex except the one we had set to Index on its own page.

Rank Math Post Robots Meta setting with No Index ticked

Yoast SEO: Noindex One Page or a Whole Post Type

Yoast SEO keeps the page choice in the Advanced section of its sidebar. Yoast also explains the idea in its noindex guide.

  1. Open Advanced: Edit the page, open the Yoast SEO sidebar, and expand Advanced.
  2. Choose No: Set “Allow search engines to show this content in search results?” to No and update the page. Our test post then printed noindex, follow.
    Yoast SEO list set to No to noindex a post

For a whole type, go to Yoast SEO > Settings > Content types and open Posts. Switch off Show posts in search results and save. The post we checked printed noindex and the post sitemap vanished from our sitemap index.

Yoast SEO switch that removes posts from search results

Noindex Without an SEO Plugin

Without an SEO plugin, the wp_robots filter changes the directives in the robots meta tag. It has existed since WordPress 5.7. This snippet noindexes one page by its slug, and the Code Snippets screen below shows it with the front-end location chosen.

add_filter( 'wp_robots', function ( $robots ) {
	if ( is_page( 'thank-you' ) ) {
		$robots['noindex'] = true;
	}
	return $robots;
} );

On our test site, the thank-you page printed max-image-preview:large, noindex and other pages kept their normal tag. Use the plugin setting instead when Rank Math or Yoast SEO is active so two tools do not fight over the same tag.

Code Snippets editor with the wp_robots noindex snippet

For a header instead of a meta tag, send an X-Robots-Tag from the template_redirect action. A header can carry the rule for pages where you cannot edit the head.

add_action( 'template_redirect', function () {
	if ( is_page( 'thank-you' ) ) {
		header( 'X-Robots-Tag: noindex, follow' );
	}
} );

On our test site the thank-you page answered with the header x-robots-tag: noindex, follow, and the other pages sent no such header.

What Noindex Does Not Do

Noindex does not hide a page from visitors, and it does not stop crawling. It only asks search engines to leave the page out of their results. A noindexed page still opens for anyone who has the link, and your own visitors will not notice any change.

Noindex is also not a security tool. Anyone can still open the page, and a visitor can read its source. Keep private content behind a login or a password instead.

If you want a page that visitors cannot open, our guide to hiding a page in WordPress covers the options. For a whole site that is not ready, see how to hide a WordPress site until it is ready.

Your SEO plugin may also drop noindexed pages from its sitemap. Yoast SEO removed the post sitemap from our sitemap index when we noindexed every post. Check your sitemap after a type-wide change.

The Reading box prints both noindex and nofollow. Google describes nofollow as “Do not follow the links on this page”. That setting also affects the links on every page.

How to Check Noindex in Google Search Console

Paste the page address into the URL Inspection search bar and read the Indexing allowed line. If it says No, Google found a noindex tag or header on the page. After you remove it, run Test live URL to check the current version.

  1. Inspect the URL: Open Search Console, paste the full page address into the search bar at the top, and press Enter.
  2. Read Indexing allowed: Google’s URL Inspection help says a No here means the page returns a noindex tag or header. A No on Crawl allowed means a robots.txt rule blocks Google instead.
    Google help text on Indexing allowed in URL Inspection
  3. Test the live URL: After you remove the tag, click Test live URL. Google says the page must be reachable without a login, and you can switch between the live and indexed results.
  4. Request indexing: Click Request indexing on the result page. Google says you cannot request it while the live test shows the page as not indexable, and a request does not guarantee indexing.
Check noindex in WordPress with URL Inspection

A page that Google already knows may keep its old status until it is crawled again. The live test shows the current page. Use it to confirm your fix before you request indexing. If the result still says No, work back through the steps above and look at the source of the live page.

The Page indexing report lists these pages as URL marked noindex. Google’s Page indexing report help says validation takes up to about two weeks and sometimes longer. Be patient after a fix.

Conclusion

Noindex in WordPress comes from one of four places. Check the Reading setting, the page, the site-wide plugin option, and your code in that order. Rank Math and Yoast SEO each give you a per-page switch, and a snippet covers everything else.

Keep robots.txt out of it, because a block there hides the noindex rule from Google. Confirm every change as a visitor and in URL Inspection, and wait for Google to recrawl before you judge the result.

Frequently Asked Questions (FAQs)

Q1. Is noindex the same as a robots.txt Disallow rule?

No. A Disallow rule stops crawling and noindex stops indexing. If robots.txt blocks a page, Google never reads its noindex tag. The two rules should not be combined on the same URL.

Q2. Why does my WordPress site say noindex on every page?

A common cause is the Reading setting “Discourage search engines from indexing this site”. Untick it and save. If it is already clear, check your SEO plugin’s site-wide settings and your code for a rule that applies to every page.

Q3. Does noindex also mean nofollow?

Not always. The Reading box prints both, but Rank Math and Yoast SEO printed noindex with follow in our tests. Check the full content value of the robots tag instead of assuming.

Q4. Can I noindex a page without a plugin?

Yes. Add a snippet that uses the wp_robots filter to print the tag, or one that sends an X-Robots-Tag header. We tested both on WordPress 7.1.3, and each one affected only the page we named.

Q5. How long does it take Google to drop or restore a page?

Google gives no fixed time. Its Page indexing help says validation takes up to about two weeks and sometimes longer, and a recrawl request does not guarantee a result.

Q6. Should I noindex tag and category archives?

That depends on your site. Thin archives with little unique content are common noindex candidates, while archives that you want people to find should stay indexable. Set the choice per taxonomy in Rank Math or Yoast SEO.

Yash Kapoor
Yash Kapoor

Yash Kapoor is the founder and WordPress expert at DevDiggers, where he builds WordPress and WooCommerce plugins for loyalty programs, point-of-sale systems, digital wallets and affiliate management. He writes about developer tools, site performance and the technical side of running a WordPress store. He draws on years of building and maintaining production plugin codebases.

Leave a Reply

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