Description
Some pages should stay out of search results: thank-you pages, landing pages for one campaign, thin or duplicate content. DevLab Noindex Toggle adds one checkbox to the edit screen, “Hide from search engines (noindex)”. Tick it, update the page, and the page asks search engines not to list it.
What it does
- Adds a “Search engine visibility” box to the edit screen of posts, pages and other public post types, in the block editor and in the classic editor. Media items get it too while attachment pages are switched on.
- On a ticked item, adds
noindex, followto the robots meta tag that WordPress prints: search engines are asked not to list the page and may still follow its links. If the site already saysnofollow(for example when Settings > Reading discourages search engines), that is kept. - Works on the page chosen as “Posts page” in Settings > Reading too.
- Adds an optional “Noindex” column to the post, page and media lists. You can turn it off on the settings screen.
A warning before you hide something important
Hiding the wrong page is easy to miss, so the plugin points out items that play a special role on your site:
- The box on the edit screen says so when the item is your front page, your posts page, or linked in a menu.
- In the list column, a hidden item with one of those roles is flagged.
- The settings screen lists the hidden items (the 100 most recently modified) with a link to edit each one, and shows a warning when your front page or posts page is hidden.
Menus are read from Appearance > Menus and from the menus of the Navigation block (Site Editor). Menu items that point to the post or page count; custom links, and the Page List block that lists pages automatically, are not read. The plugin only warns: it does not untick a box or change a page by itself.
One robots tag
The directive goes into the robots tag WordPress already prints, so a ticked page has one robots tag. With Yoast SEO, which adds its values to that same tag, the result is still one tag with noindex. Once it is set up, Rank Math replaces that tag with its own; the plugin then adds the directive to the tag Rank Math prints. If other code removes the robots tag, the plugin prints its own <meta name="robots" content="noindex,follow" />.
What it does not do
- It is not a lock. Noindex is a request; anyone with the address can still open the page. For private content use a password or the Private visibility.
- It does not change your robots.txt, your sitemap, your
.htaccessor your content. WordPress’s sitemap may still list a hidden page. - It does not apply to archives, categories, tags or search results.
- It cannot promise how a search engine behaves. A page that is already in the results leaves only after the search engine visits it again.
What it stores
One option for its settings, one post meta row (_devlab_ni_noindex) for each ticked item and, for each user who dismisses its notice, one user meta entry. It creates no tables. Unticking an item deletes its row. Deleting the plugin from the Plugins screen removes all of these, on every site of a multisite network; from then on nothing adds the noindex directive, so those pages can be listed again.
On a single post or page the plugin reads data WordPress has already loaded and adds no database query. The page chosen as “Posts page” costs one small query. It loads no CSS or JavaScript on your public pages.
Privacy
The plugin collects no visitor data, sends nothing to external services, needs no account or API key and sets no cookies. Its settings screen has two links to the DevLab Store (devlab.ia.br) with utm_ tags that name this plugin; your browser contacts that site only if you click one.
For developers
Use the devlab_ni_post_types filter to change the post types that get the box:
add_filter( 'devlab_ni_post_types', function ( $types ) { return array_diff( $types, array( 'product' ) ); } );
About DevLab
DevLab builds plugins and a theme for WordPress. The plugin adds its screen under a DevLab menu, which it creates unless another DevLab plugin already did. That screen has one dismissible notice and a small box, each with a link to the DevLab Store (devlab.ia.br/store), which lists our free and paid plugins and a theme. The plugin adds nothing promotional anywhere else in your dashboard, and no credit link to your public pages.
Yoast SEO and Rank Math are trademarks of their respective owners. They are named only to describe compatibility; DevLab is not affiliated with them.
Source code
All JavaScript and CSS is plain, unminified source; there is no build step.
Screenshots




Installation
- Install and activate the plugin from the Plugins screen.
- Edit a post or page, tick “Hide from search engines (noindex)” in the “Search engine visibility” box and update it.
- Optional: go to DevLab > Noindex Toggle to see the hidden items or to turn the list column off.
FAQ
-
Where is the box in the block editor?
-
In the editor’s sidebar (the “Settings” button at the top right), on the Post or Page tab, at the bottom, below Categories and Tags. It is saved when you click Save or Update. In the classic editor it is in the right-hand column.
-
How can I check that it worked?
-
Open the page on your site, view its source and look for a robots meta tag that contains
noindex. If you use a page cache or a performance plugin, clear its cache first. -
Why is the page still in Google?
-
Noindex takes effect when the search engine visits the page again, which can take days or weeks. Check that the page is not blocked in robots.txt: a blocked page is not visited, so the tag is not seen.
-
I use Yoast SEO or Rank Math.
-
Both have their own robots setting for each page, and the box tells you when one of them is active. You can use either control. A ticked box gives the page
noindexeven if the SEO plugin is set to index it. Unticking the box removes only this plugin’s directive: a noindex set in the SEO plugin stays. Other SEO plugins are not detected. -
Will it remove the page from my sitemap?
-
No. This plugin does not touch sitemaps. WordPress’s sitemap, and the sitemap of an SEO plugin, may still list a hidden page.
-
Not in this version. The plugin works on single items and on the page chosen as “Posts page”.
-
Who can change the box?
-
Anyone who can edit that item. The save checks a nonce and the edit permission. Quick Edit, bulk edit and the REST API do not change it.
-
Does it make my site compliant with any law?
-
No. It adds one robots directive to the items you choose. It does not provide legal advice.
-
What happens when I delete the plugin?
-
Its option, the “notice dismissed” entries and the flag of every ticked item are removed. Your posts and pages are not touched. Deactivating the plugin keeps them, but stops the directive.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“DevLab Noindex Toggle” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “DevLab Noindex Toggle” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.1.0
- First public release.
