[WordPress] 外掛分享: Simple SEO Noindex Toggle

首頁外掛目錄 › Simple SEO Noindex Toggle
WordPress 外掛 Simple SEO Noindex Toggle 的封面圖片
全新外掛
安裝啟用
尚無評分
5 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.0 上架:2026-05-21

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simple SEO Noindex Toggle」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Simple SEO Noindex Toggle gives you precise, per-content control over which posts and pages are indexed by search engines — without the overhead of a full SEO plugin suite.
In one click, you can exclude any post or page from search engine indexes using the standard tag. Every feature is built around a clean admin UI, WordPress coding standards, and zero unnecessary dependencies.
Core Features
Noindex Toggle — Meta Box
A clean “SEO Settings” meta box appears in the post and page editor sidebar. It includes:

A smooth CSS toggle switch
A live status badge (“Included in index” / “Excluded from index”) that updates instantly without a page reload
A tag preview showing the exact meta tag that will be output when noindex is active
A built-in Tag Verifier button (on published posts)

Built-in Tag Verifier
A “Verify Tag in Source” button inside the meta box performs a live server-side HTTP request to the post’s public URL and checks whether the robots meta tag is actually present in the page source — using PHP’s DOMDocument parser for reliable, regex-free detection. Results display inline with three clear states:

✓ Confirmed — the noindex tag is live in the page source, showing the exact tag as found
⚠ Not Found — the tag is missing from source, likely a caching issue
✕ Error — the page could not be fetched (reason shown)

Admin Bar Indicator
A live SEO status badge appears in the WordPress admin bar showing:

● Noindex (red) — this page is excluded from search indexes
● Indexed (green) — this page is included in search indexes

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.
Post List Table Column
A sortable “SEO” column on the Posts and Pages list tables. Each row shows a colored status badge — red “● Noindex” or green “● Indexed” — giving editors an instant full-site noindex audit at a glance without opening individual posts.
The column is sortable: click the column header to sort all noindexed content to the top.
Bulk Actions
Two new bulk actions in the Posts and Pages list tables:

SEO: Add Noindex — enables noindex on all selected posts in one action
SEO: Remove Noindex — clears noindex from all selected posts in one action

A dismissible admin notice confirms how many posts were updated after each bulk action.
Quick Edit Support
A “Noindex this post” checkbox appears inside the Quick Edit row — toggle noindex without opening the full post editor. The checkbox is automatically pre-populated with the current post’s noindex status when Quick Edit opens.
Settings Page
Found under Settings → Simple SEO Noindex. Provides:

Enable Plugin Globally — master on/off switch
Enable for Posts — show meta box on posts
Enable for Pages — show meta box on pages

What Gets Output
When noindex is enabled for a post or page, the following tag is added to with priority 1 (near the very top, before any third-party tags):

Technical Highlights

OOP architecture — clean singleton classes with SSN_ prefix throughout
No jQuery — 100% vanilla JavaScript with the Fetch API
DOMDocument parsing — Tag Verifier uses proper HTML parsing, not fragile regex
Secure — nonce verification, sanitize_text_field(), esc_attr(), esc_html(), current_user_can() on every save operation
Clean uninstall — all options and post meta removed on plugin deletion
Multisite compatible — uninstall routine handles all subsites
Zero frontend footprint — no scripts or stylesheets loaded on the public-facing site

Who Is This For?
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.
How to Verify the Plugin Is Working
There are three ways to confirm the noindex tag is active on the frontend:
Method 1 — Built-in Tag Verifier (recommended)

Enable the Noindex toggle on a published post and save.
In the editor, click Verify Tag in Source in the SEO Settings meta box.
A green ✓ Confirmed result appears, showing the exact tag found in the live page source.

Method 2 — View Page Source

Visit the published post on the frontend.
Right-click → View Page Source (or press Ctrl+U / Cmd+U).
Press Ctrl+F and search for noindex.
The tag appears near the top of .

Method 3 — Google Search Console

Open URL Inspection in Google Search Console.
Paste the post URL and click Test Live URL.
Under Page Indexing, Google reports: “Page is not indexed — noindex tag detected”.
Under HTTP response → Detected meta tags, the robots tag is listed explicitly.

Method 4 — site: Search Operator
After Google recrawls the page (typically 24–72 hours), searching site:yourdomain.com/post-slug on Google returns no results, confirming the page has been de-indexed.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon