
內容簡介
Unlisted Posts 外掛為文章和頁面新增一個「不列出」的切換選項,開啟後該內容將不會出現在 WordPress 的任何列表中,但擁有連結的人仍可訪問。這對於與客戶分享頁面、發布不希望出現在部落格中的文件或保持舊內容可訪問而不進行推廣非常實用。
【主要功能】
• 隱藏文章於部落格首頁、分類、標籤等列表
• 隱藏搜尋結果和 RSS、Atom 提要
• 自動添加 noindex 標籤以避免搜尋引擎索引
• 支援自訂文章類型,靈活擴展功能
• 在控制台顯示「不列出」標籤以便管理
外掛標籤
開發者團隊
原文外掛簡介
Unlisted Posts adds an “Unlisted” toggle to posts and pages. Switch it on and the post is left out of everywhere WordPress lists content, while anyone with the link can still open it. Handy for sharing a page with clients, publishing documentation you don’t want in your blog feed, or keeping old content reachable without promoting it.
What gets hidden
Blog home, category, tag, author and date archives
Search results
RSS and Atom feeds
Core XML sitemaps
Latest Posts, Query Loop and other blocks and widgets that list posts
Previous / next post links
The REST API lists used by the block editor and apps
Unlisted posts also send a noindex robots meta tag so search engines drop them, and the Posts and Pages admin lists show an “Unlisted” label next to each one.
Where the toggle lives
Block editor: the post sidebar’s Summary panel, next to Status and Visibility
Classic editor: a checkbox in the Publish box
The plugin stores a single _unlisted_post post meta value and keeps a small cached list of unlisted IDs, so there is no extra query cost on the front end.
Custom post types
Posts and pages are supported by default. Add other post types with the unlisted_posts_post_types filter. A post type must support custom-fields for the block editor toggle to save.
add_filter( 'unlisted_posts_post_types', function ( $types ) {
$types[] = 'product';
return $types;
} );
