SEO & AI search · Guide
How to Noindex a Page in WordPress

Short answer
To noindex a page in WordPress, open the page in the editor and set it to noindex in your SEO plugin. In Yoast SEO, open the Advanced tab and set Allow search engines to show this content in search results to No. In Rank Math, open the Advanced tab and select No Index under Robots Meta, then update the page and ask Google to recrawl it.
Key takeaways
- Noindex tells search engines not to list a page, while the page stays live for visitors.
- Google drops a noindexed page from results entirely, even if other sites link to it.
- In Yoast SEO, set Allow search engines to show this content in search results to No.
- In Rank Math, open the Advanced tab and select No Index under Robots Meta.
- Never put noindex in robots.txt, since Google does not support it there.
What does noindex mean?
Noindex is a rule that tells search engines not to show a page in their search results.
You add it to one page, and that page stays live for visitors who open its URL. It just stops appearing in Google and other search engines that respect the rule.
Google states that when Googlebot crawls a noindexed page and reads the tag, Google will drop that page entirely from search results, regardless of whether other sites link to it, in its noindex guide.
Noindex is a request, not a lock. Search engines that support the rule follow it, but the page is still public to anyone with the link.
When should you noindex a page?
Noindex pages that have no value in search results, such as thank-you pages, login pages, and internal search results.
Good candidates for noindex include:
- Thank-you and order-confirmation pages that only make sense after a purchase or form.
- Login, password-reset, and account pages.
- Internal search results pages on your own site.
- Thin archive pages with little content, such as empty tag pages.
- Duplicate pages that exist for a technical reason, such as print views.
Each of these pages can still serve visitors who reach them by a link or a button. They just do not need to rank.
When should you not noindex a page?
Never noindex a page you want people to find through search, and never noindex your whole site by accident.
A noindex tag on a money page, a key service page, or a popular post removes it from results. That traffic loss can last weeks even after you remove the tag.
Do not noindex a page to fix duplicate content when a canonical tag is the right tool. A canonical tag tells Google which version to show, while noindex hides the page outright.
If a page shows up in search by mistake, check where the tag came from before you change anything. The steps in how to fix crawled currently not indexed in WordPress help you trace the cause.
What do you need before you start?
You need admin access to WordPress, an SEO plugin such as Yoast SEO or Rank Math, and the URL of the page to hide.
Both plugins add the tag for you, so you do not need to edit code. If you have neither plugin, install one first, since hand-editing theme files is easy to get wrong.
Decide the scope before you click anything. One page, a whole post type, or the full site each use a different setting, and mixing them up causes surprises.
Also check your robots.txt file. Google warns that if robots.txt blocks a URL, Googlebot cannot see the noindex tag on it, in its noindex guide.
If you are unsure how that file works, read what robots.txt is first.
How do you noindex a page with Yoast SEO?
Open the page in the editor, open the Yoast SEO sidebar, and set “Allow search engines to show this content in search results” to “No”.
Yoast SEO lays out these exact steps in its noindex guide.
Follow these steps:
- Log in to WordPress and open the post or page you want to hide.
- Click the Yoast SEO icon at the top right of the editor to open the sidebar.
- Open the “Advanced” tab in the sidebar.
- Find “Allow search engines to show this content in search results” and select “No”.
- Click “Update” to save the page.
Only editors and administrators can use the “Advanced” tab by default, according to the Yoast guide.
The tag Yoast adds is <meta name="robots" content="noindex, follow">, which asks search engines not to list the page but to keep following its links.
Note that this setting also drops the page from your XML sitemap. Yoast explains in its indexing guide that content set not to appear in search engines is noindexed and kept out of the XML sitemap.
How do you noindex a page with Rank Math?
Open the page in the editor, open the Rank Math box, go to the “Advanced” tab, and select “No Index” under “Robots Meta”.
Rank Math documents this flow in its noindex guide.
Follow these steps:
- Switch Rank Math to “Advanced Mode” under “Rank Math SEO → Dashboard” if the “Advanced” tab is missing.
- Open the post or page in the block editor.
- Click the “Rank Math SEO” icon at the top right to open the Rank Math box.
- Click the “Advanced” tab.
- Under “Robots Meta”, select the “No Index” checkbox.
- Click “Update” or “Publish” to save.
Rank Math also lets you noindex from the classic editor, Quick Edit with Rank Math PRO, and the admin bar, according to its noindex guide.
If the page was noindexed by mistake, open the same “Advanced” tab and select “Index” instead, as Rank Math explains in its Submitted URL marked noindex guide.
How do you noindex a whole post type or category?
Change the default in your SEO plugin settings instead of editing each post one by one.
In Yoast SEO, go to “Yoast SEO → Settings”, open the content type, taxonomy, or archive type, and switch off “Show in search results”, then click “Save changes”, as the Yoast guide explains.
In Rank Math, go to “Rank Math SEO → Titles & Meta” and check each tab, setting the “Robots Meta” tag to noindex for the types you want to hide, according to its noindex guide.
Rank Math notes that changes to these defaults affect future posts, not existing ones, so fix existing posts with the per-page setting, as its Submitted URL marked noindex guide states.
Yoast already sets search pages and 404 pages to noindex and follow by default, according to its noindex guide.
Use this bulk setting with care. Switching off a whole post type hides every post of that type, including ones already ranking.
How do you noindex your whole site?
Go to “Settings → Reading” and check “Discourage search engines from indexing this site”, then click “Save Changes”.
This is the right choice for a staging site or a site still under construction. It is the wrong choice for a live site, and it is the most common cause of a site vanishing from Google.
WordPress documents that, since version 5.3, this box adds <meta name="robots" content="noindex,nofollow"> to the head of your pages, on its Reading settings page.
The same page warns that this only asks search engines not to index your site, and that it is up to each search engine to honor the request, as stated on the Reading settings page.
This setting does not block access to your site. Visitors can still open every page, and a password is the only way to truly keep people out.
If your live site is missing from Google, this checkbox is the first thing to check. The steps in how to get WordPress pages indexed faster start from the same point.
How do you check that noindex worked?
View the page source in your browser and look for the robots meta tag, then ask Google to recrawl the page.
Follow these steps:
- Open the page in your browser while logged out.
- Right-click and choose “View page source”.
- Search the source for
noindexand confirm the tag is there. - Open Google Search Console, go to the URL Inspection tool, and request indexing.
- Wait for Googlebot to revisit the page.
Google warns that it must crawl the page to see the tag, and that it may take months for Googlebot to revisit a low-traffic page, in its noindex guide.
You can also watch the Page Indexing report in Search Console, which shows pages where Googlebot found a noindex rule, according to the same Google guide.
If you need the steps for Search Console itself, see how to connect Google Search Console to WordPress.
For files that are not HTML, such as PDFs, use the X-Robots-Tag header instead of a meta tag. Google explains that the header works for PDFs, video files, and image files in its noindex guide.
Which noindex method should you use?
Match the method to the scope: one page, one post type, the whole site, or a file that is not HTML.
| Method | Where you set it | What it hides |
|---|---|---|
| Yoast per page | “Advanced” tab, “Allow search engines...” → “No” | One post or page |
| Rank Math per page | “Advanced” tab, “Robots Meta” → “No Index” | One post or page |
| Post type default | Yoast Settings, or Rank Math Titles & Meta | All posts of that type |
| Whole site | “Settings → Reading” checkbox | Every page on the site |
| X-Robots-Tag header | Server header | PDFs and other non-HTML files |
For a single page, use the per-page setting in your SEO plugin. Use the whole-site checkbox only for staging or a site still under construction.
What mistakes should you avoid?
Do not put noindex in robots.txt, do not block the page with robots.txt, and do not noindex pages you want to rank.
The most common mistakes are easy to avoid:
- Adding noindex to robots.txt, which Google does not support for this purpose.
- Blocking the page in robots.txt so Googlebot never sees the noindex tag.
- Leaving “Discourage search engines from indexing this site” checked after launch.
- Noindexing a page and then wondering why its links stopped passing value.
- Expecting the page to vanish from results the same day you add the tag.
Google states plainly that putting the noindex rule in robots.txt is not supported, in its noindex guide.
If you edit robots.txt by hand, follow how to edit robots.txt in WordPress so you do not block the wrong URLs.
Check the tag, ask for a recrawl, and give Google time. Noindex works, but only when Googlebot can reach the page and read the tag.
Frequently asked questions
Does noindex hide a page from visitors too?
Yes. Noindex only asks search engines not to show the page in results. The page stays live, and anyone with the URL can still open it. If you want to block visitors too, password-protect the page instead.
Can I noindex a page with robots.txt?
No. Google states that putting noindex in robots.txt is not supported. A robots.txt rule only blocks crawling, and a blocked page cannot show Google its noindex tag. Use a meta tag on the page or an X-Robots-Tag header instead.
How long does it take for a noindexed page to leave Google?
It can take days or weeks, and Google says it may take months for Googlebot to revisit a low-traffic page. Open the URL Inspection tool in Google Search Console and request a recrawl to speed up the process.
How do I check whether my whole WordPress site is set to noindex?
Check Settings, then Reading, and look for the Discourage search engines from indexing this site box. If it is checked, uncheck it and save. This box adds noindex to every page, and leaving it on after launch is the most common cause of a missing site.
What is the difference between noindex and nofollow?
Noindex tells search engines not to list a page, while nofollow tells them not to follow the links on it. You can use both at once, such as noindex, follow, which hides the page from results but still lets crawlers follow its links.
Sources
- Block Search Indexing with noindex Google Search Central
- How to noindex URLs Yoast
- How to Noindex a Page in WordPress (And When You Should) Rank Math
- Settings Reading screen WordPress.org
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


