[WordPress] 外掛分享: Simply Hide Pages

首頁外掛目錄 › Simply Hide Pages
90+
安裝啟用
尚無評分
5694 天前
最後更新
問題解決
WordPress 2.9+ v1.0 上架:2010-08-15

內容簡介

這是一個簡單的方法,可以輕鬆從 wp_list_pages 輸出中隱藏某些頁面。
只需在頁面中添加自訂欄位"hide",並設置任意值,這個頁面就不再出現在頁面清單中。
您已經可以在"頁面(widget)"上執行此操作,或通過將exclude參數添加到所有wp_list_pages模板標記來執行此操作。但現在,您可以直接從頁面編輯器中執行此操作,這是最好的方法。

如果您需要某些頁面存在,但不希望出現在頁面列表中,則可能需要隱藏頁面。例如,您有Cool URIs don’t change,但某些服務已從您的網站中刪除,因此,您撰寫了一個頁面,說明現在可以去哪裡獲取相應的服務(不是實際的重定向,但有時仍然很有用)。當然,您不希望這個頁面出現在頁面列表中,您更喜歡只列出新服務 😉

與其他更複雜的外掛程序不同,它使用自訂欄位來避免向您的數據庫添加表格。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Simply Hide Pages」→ 直接安裝(推薦)

原文外掛簡介

Easy way to hide some pages from wp_list_pages output.
Simply add the custom field ‘hide’ with any value to your page, and this page will no longer appear on the page list.
You could already do this on the ‘Pages’ widget or by adding the exclude parameter to all your wp_list_pages template tags. But now you can do it directly form the page editor which is, I believe, the best place to do so.
You might want to hide pages if you need some pages to exist but don’t want them to appear on your page list. For instance as Cool URIs don’t change, but some services have been removed from your site, so you write a page explaining where to go to get the equivalent service now. (not a real redirect, but still useful sometimes). Of course you don’t want this page on your page list, you prefer to only have the new services listed 😉
Unlike other more complex plugins, it uses custom field to avoid adding tables to your database.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon