
內容簡介
這個外掛會在發布文章的後台設定區塊中顯示一個勾選框,允許你將文章標記為特色文章。該勾選框僅會出現在管理員選擇的文章類型中,可以在「設定」→「撰寫文章」螢幕中進行選擇。
當文章被標記為特色文章時:
該文章會透過「post_class」過濾器取得「featured」和「featured-{$posttype}」兩個 CSS 類別。
在文章類型的後台設定中,會標示該文章為特色文章。
該文章會被賦予一個隱藏的分類(特色文章),可以輕易地進行查詢。
注意:若要使該插件在附件上運作,你必須使用 WordPress 3.5 或更新的版本。其他功能可在 WordPress 3.1.0 或更新版本上運作。
外掛標籤
開發者團隊
原文外掛簡介
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.
