[WordPress] 外掛分享: Ambrosite Post Formats Widget

首頁外掛目錄 › Ambrosite Post Formats Widget
10+
安裝啟用
尚無評分
5148 天前
最後更新
問題解決
WordPress 3.1+ v1.1 上架:2011-02-23

內容簡介

文章格式(Post Formats)是WordPress 3.1版本中推出的一個佈景主題功能。這個外掛創建了一個簡單的小工具(widget),讓你可以將文章格式的列表或下拉菜單放在側邊欄。它的操作方式類似於類別小工具(Categories widget)。文章格式小工具提供以下選項:設置自定義小工具標題、設置自定義工具提示文字、顯示為列表或下拉菜單、顯示或隱藏文章計數、顯示或隱藏文章格式 ID 編號。

你必須至少將一篇文章指定為非“標準”格式,以便於此小工具顯示。請注意,有一個格式變數(%format),你可以在自定義工具提示文字中使用它來輸出格式名稱。另外,格式 ID 是指 wp_terms 表格中的 term_id。你通常不希望以格式 ID 編號的形式顯示給訪問者,但在主題開發過程中,這個 ID 可能會很有用,因為文章格式只是自定義分類的一種特殊形式。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Ambrosite Post Formats Widget」→ 直接安裝(推薦)

原文外掛簡介

Post Formats are a theme feature introduced in WordPress version 3.1. This plugin creates a simple widget that lets you place a list or dropdown of post formats in your sidebar. It works much the same as the Categories widget. The Post Formats Widget offers the following options: set a custom widget title, set custom tooltip text, display as a list or as a dropdown, show or hide post counts, show or hide post format ID numbers.
You must have at least one post assigned to a format other than ‘Standard’ in order for this widget to display anything. Note that there is a %format variable you can use in custom tooltip text to output the format name. Also, the format ID refers to the term_id in the wp_terms table. You would not normally want to display the format IDs to your site visitors, however it may be useful to know the IDs during theme development, since Post Formats are just a specialized case of a custom taxonomy.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon