[WordPress] 外掛分享: Post Type Spotlight

首頁外掛目錄 › Post Type Spotlight
WordPress 外掛 Post Type Spotlight 的封面圖片
20+
安裝啟用
★★★★★
5/5 分(2 則評價)
776 天前
最後更新
問題解決
WordPress 5.1+ v3.0.3 上架:2013-02-24

內容簡介

這個外掛會在發布文章的後台設定區塊中顯示一個勾選框,允許你將文章標記為特色文章。該勾選框僅會出現在管理員選擇的文章類型中,可以在「設定」→「撰寫文章」螢幕中進行選擇。

當文章被標記為特色文章時:

該文章會透過「post_class」過濾器取得「featured」和「featured-{$posttype}」兩個 CSS 類別。
在文章類型的後台設定中,會標示該文章為特色文章。
該文章會被賦予一個隱藏的分類(特色文章),可以輕易地進行查詢。

注意:若要使該插件在附件上運作,你必須使用 WordPress 3.5 或更新的版本。其他功能可在 WordPress 3.1.0 或更新版本上運作。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.0.3) 或搜尋安裝

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

原文外掛簡介

The plugin displays a checkbox in the publish meta box to feature a post. The checkbox only appears on admin selected post types which can be selected in the Settings->Writing screen.
When a post is designated as featured:

It receives ‘featured’ and featured-{$posttype} classes via the post_class filter.
Shows featured posts as such in the post type’s admin screen
Assigns a post a hidden taxonomy term (featured) that can easily be queried.

Note: For the plugin to work on attachments, you must be using 3.5 or above. All other features will work on 3.1.0 and up.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon