{"id":10952,"date":"2026-05-23T05:30:09","date_gmt":"2026-05-22T21:30:09","guid":{"rendered":"https:\/\/aeosub.com\/simple-seo-noindex-toggle\/"},"modified":"2026-05-23T05:30:09","modified_gmt":"2026-05-22T21:30:09","slug":"simple-seo-noindex-toggle","status":"publish","type":"post","link":"https:\/\/aeosub.com\/zh\/simple-seo-noindex-toggle\/","title":{"rendered":"Simple SEO Noindex Toggle"},"content":{"rendered":"<div class=\"post-img\" style=\"margin-bottom: 25px\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/simple-seo-noindex-toggle\/assets\/banner-772x250.png?rev=3544427\" alt=\"Simple SEO Noindex Toggle\" style=\"width: 100%;height: auto;border-radius: 12px\"><\/div>\n<div class=\"plugin-info-card\" style=\"border: 1px solid #e2e8f0;border-radius: 10px;overflow: hidden;margin-bottom: 30px;font-family: -apple-system, system-ui, sans-serif;background: #fff\">\n<table style=\"width: 100%;border-collapse: collapse;font-size: 14px\">\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 15px 20px;text-align: left;width: 35%;color: #4a5568;background: #fcfcfc\"><img decoding=\"async\" src=\"https:\/\/ps.w.org\/simple-seo-noindex-toggle\/assets\/icon-256x256.png?rev=3544427\" style=\"width: 40px;height: 40px;border-radius: 6px;margin-right: 12px;vertical-align: middle\"> Developer<\/th>\n<td style=\"padding: 15px 20px;font-weight: 500\"><a href=\"https:\/\/profiles.wordpress.org\/sibokul\/\" target=\"_blank\" rel=\"noopener\">Saidul Islam Bokul<\/a><\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Version<\/th>\n<td style=\"padding: 12px 20px\">v1.0.0<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Active Installs<\/th>\n<td style=\"padding: 12px 20px\">0 +<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Requires \/ Tested<\/th>\n<td style=\"padding: 12px 20px\">5.8 \/ 6.9.4<\/td>\n<\/tr>\n<tr style=\"border-bottom: 1px solid #edf2f7\">\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Last Updated<\/th>\n<td style=\"padding: 12px 20px\">2026-05-22 8:21pm GMT<\/td>\n<\/tr>\n<tr>\n<th style=\"padding: 12px 20px;text-align: left;color: #4a5568;background: #fcfcfc\">Official Link<\/th>\n<td style=\"padding: 12px 20px\"><a href=\"https:\/\/wordpress.org\/plugins\/simple-seo-noindex-toggle\/\" target=\"_blank\" style=\"text-decoration: none;color: #4a3bca;font-weight: bold\" rel=\"noopener\">View Details \u2192<\/a><\/td>\n<\/tr>\n<\/table><\/div>\n<div class=\"plugin-short-desc\" style=\"margin: 20px 0;padding: 12px 15px;background: #f9fafb;border-left: 4px solid #4a3bca;border-radius: 6px;font-style: italic;color: #4a5568\">A lightweight, professional SEO plugin \u2014 add a noindex robots tag to any post or page with a clean toggle, admin bar indicator, list column, bulk acti &hellip;<\/div>\n<p><strong>Simple SEO Noindex Toggle<\/strong> gives you precise, per-content control over which posts and pages are indexed by search engines \u2014 without the overhead of a full SEO plugin suite.<\/p>\n<p>In one click, you can exclude any post or page from search engine indexes using the standard <code>&lt;meta name=\"robots\" content=\"noindex, nofollow\"&gt;<\/code> tag. Every feature is built around a clean admin UI, WordPress coding standards, and zero unnecessary dependencies.<\/p>\n<h4>Core Features<\/h4>\n<p><strong>Noindex Toggle \u2014 Meta Box<\/strong><\/p>\n<p>A clean &#8220;SEO Settings&#8221; meta box appears in the post and page editor sidebar. It includes:<\/p>\n<ul>\n<li>A smooth CSS toggle switch<\/li>\n<li>A live status badge (&#8220;Included in index&#8221; \/ &#8220;Excluded from index&#8221;) that updates instantly without a page reload<\/li>\n<li>A tag preview showing the exact meta tag that will be output when noindex is active<\/li>\n<li>A built-in Tag Verifier button (on published posts)<\/li>\n<\/ul>\n<p><strong>Built-in Tag Verifier<\/strong><\/p>\n<p>A &#8220;Verify Tag in Source&#8221; button inside the meta box performs a live server-side HTTP request to the post&#8217;s public URL and checks whether the robots meta tag is actually present in the page source \u2014 using PHP&#8217;s DOMDocument parser for reliable, regex-free detection. Results display inline with three clear states:<\/p>\n<ul>\n<li>\u2713 <strong>Confirmed<\/strong> \u2014 the noindex tag is live in the page source, showing the exact tag as found<\/li>\n<li>\u26a0 <strong>Not Found<\/strong> \u2014 the tag is missing from source, likely a caching issue<\/li>\n<li>\u2715 <strong>Error<\/strong> \u2014 the page could not be fetched (reason shown)<\/li>\n<\/ul>\n<p><strong>Admin Bar Indicator<\/strong><\/p>\n<p>A live SEO status badge appears in the WordPress admin bar showing:<\/p>\n<ul>\n<li><strong>\u25cf Noindex<\/strong> (red) \u2014 this page is excluded from search indexes<\/li>\n<li><strong>\u25cf Indexed<\/strong> (green) \u2014 this page is included in search indexes<\/li>\n<\/ul>\n<p>Visible both on the frontend (when browsing any singular post or page) and inside the WordPress admin post editor. Clicking the badge takes you directly to the post edit screen.<\/p>\n<p><strong>Post List Table Column<\/strong><\/p>\n<p>A sortable &#8220;SEO&#8221; column on the Posts and Pages list tables. Each row shows a colored status badge \u2014 red &#8220;\u25cf Noindex&#8221; or green &#8220;\u25cf Indexed&#8221; \u2014 giving editors an instant full-site noindex audit at a glance without opening individual posts.<\/p>\n<p>The column is sortable: click the column header to sort all noindexed content to the top.<\/p>\n<p><strong>Bulk Actions<\/strong><\/p>\n<p>Two new bulk actions in the Posts and Pages list tables:<\/p>\n<ul>\n<li><strong>SEO: Add Noindex<\/strong> \u2014 enables noindex on all selected posts in one action<\/li>\n<li><strong>SEO: Remove Noindex<\/strong> \u2014 clears noindex from all selected posts in one action<\/li>\n<\/ul>\n<p>A dismissible admin notice confirms how many posts were updated after each bulk action.<\/p>\n<p><strong>Quick Edit Support<\/strong><\/p>\n<p>A &#8220;Noindex this post&#8221; checkbox appears inside the Quick Edit row \u2014 toggle noindex without opening the full post editor. The checkbox is automatically pre-populated with the current post&#8217;s noindex status when Quick Edit opens.<\/p>\n<p><strong>Settings Page<\/strong><\/p>\n<p>Found under <strong>Settings <span aria-hidden=\"true\" class=\"wp-exclude-emoji\">\u2192<\/span> Simple SEO Noindex<\/strong>. Provides:<\/p>\n<ul>\n<li>Enable Plugin Globally \u2014 master on\/off switch<\/li>\n<li>Enable for Posts \u2014 show meta box on posts<\/li>\n<li>Enable for Pages \u2014 show meta box on pages<\/li>\n<\/ul>\n<h4>What Gets Output<\/h4>\n<p>When noindex is enabled for a post or page, the following tag is added to <code>&lt;head&gt;<\/code> with priority 1 (near the very top, before any third-party tags):<\/p>\n<pre><code>&lt;meta name=\"robots\" content=\"noindex, nofollow\" \/&gt;\n<\/code><\/pre>\n<h4>Technical Highlights<\/h4>\n<ul>\n<li><strong>OOP architecture<\/strong> \u2014 clean singleton classes with <code>SSN_<\/code> prefix throughout<\/li>\n<li><strong>No jQuery<\/strong> \u2014 100% vanilla JavaScript with the Fetch API<\/li>\n<li><strong>DOMDocument parsing<\/strong> \u2014 Tag Verifier uses proper HTML parsing, not fragile regex<\/li>\n<li><strong>Secure<\/strong> \u2014 nonce verification, <code>sanitize_text_field()<\/code>, <code>esc_attr()<\/code>, <code>esc_html()<\/code>, <code>current_user_can()<\/code> on every save operation<\/li>\n<li><strong>Clean uninstall<\/strong> \u2014 all options and post meta removed on plugin deletion<\/li>\n<li><strong>Multisite compatible<\/strong> \u2014 uninstall routine handles all subsites<\/li>\n<li><strong>Zero frontend footprint<\/strong> \u2014 no scripts or stylesheets loaded on the public-facing site<\/li>\n<\/ul>\n<h4>Who Is This For?<\/h4>\n<p>SEO-focused site owners, developers, and marketing teams who need a precise, lightweight tool to manage content indexing without installing a full SEO plugin. Works standalone or alongside any existing SEO stack.<\/p>\n<h3>How to Verify the Plugin Is Working<\/h3>\n<p>There are three ways to confirm the noindex tag is active on the frontend:<\/p>\n<p><strong>Method 1 \u2014 Built-in Tag Verifier (recommended)<\/strong><\/p>\n<ol>\n<li>Enable the Noindex toggle on a published post and save.<\/li>\n<li>In the editor, click <strong>Verify Tag in Source<\/strong> in the SEO Settings meta box.<\/li>\n<li>A green \u2713 Confirmed result appears, showing the exact tag found in the live page source.<\/li>\n<\/ol>\n<p><strong>Method 2 \u2014 View Page Source<\/strong><\/p>\n<ol>\n<li>Visit the published post on the frontend.<\/li>\n<li>Right-click <span aria-hidden=\"true\" class=\"wp-exclude-emoji\">\u2192<\/span> <strong>View Page Source<\/strong> (or press <code>Ctrl+U<\/code> \/ <code>Cmd+U<\/code>).<\/li>\n<li>Press <code>Ctrl+F<\/code> and search for <code>noindex<\/code>.<\/li>\n<li>The tag <code>&lt;meta name=\"robots\" content=\"noindex, nofollow\" \/&gt;<\/code> appears near the top of <code>&lt;head&gt;<\/code>.<\/li>\n<\/ol>\n<p><strong>Method 3 \u2014 Google Search Console<\/strong><\/p>\n<ol>\n<li>Open <strong>URL Inspection<\/strong> in Google Search Console.<\/li>\n<li>Paste the post URL and click <strong>Test Live URL<\/strong>.<\/li>\n<li>Under <strong>Page Indexing<\/strong>, Google reports: <em>&#8220;Page is not indexed \u2014 noindex tag detected&#8221;<\/em>.<\/li>\n<li>Under <strong>HTTP response <span aria-hidden=\"true\" class=\"wp-exclude-emoji\">\u2192<\/span> Detected meta tags<\/strong>, the robots tag is listed explicitly.<\/li>\n<\/ol>\n<p><strong>Method 4 \u2014 site: Search Operator<\/strong><\/p>\n<p>After Google recrawls the page (typically 24\u201372 hours), searching <code>site:yourdomain.com\/post-slug<\/code> on Google returns no results, confirming the page has been de-indexed.<\/p>","protected":false},"excerpt":{"rendered":"<p>A lightweight, professional SEO plugin \u2014 add a noindex robots tag to any post or page with a clean toggle, admin bar indicator, list column, bulk acti &hellip;<\/p>","protected":false},"author":1,"featured_media":9317,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[252],"tags":[1429,1813,1247,1814,554,555],"class_list":["post-10952","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-trends","tag-meta","tag-noindex","tag-robots","tag-search-engine","tag-seo","tag-wordpress-plugin"],"_links":{"self":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/comments?post=10952"}],"version-history":[{"count":0,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/posts\/10952\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media\/9317"}],"wp:attachment":[{"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/media?parent=10952"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/categories?post=10952"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aeosub.com\/zh\/wp-json\/wp\/v2\/tags?post=10952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}