[WordPress] 外掛分享: Gigaom Taxonomy

首頁外掛目錄 › Gigaom Taxonomy
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
全新外掛
安裝啟用
尚無評分
4146 天前
最後更新
問題解決
WordPress 3.6.1+ v1.0 上架:2014-11-10

內容簡介

此外掛可以根據設定陣列程式設計性地註冊分類法(taxonomies),並提供其他輔助功能。

我們需要一種方法來新增我們跨網站所依賴的分類法,並且管理這些分類法變得麻煩。這可讓我們透過設定陣列進行管理。

此外掛還提供 WordPress 在提供原始條目排列順序和文章分類法排序方面的問題。

排列順序的分類法

還有一個sorted_terms 輔助功能,您可以在外掛程式和模板中使用,像這樣:

go_taxonomy()->sorted_terms( $post_id, $args );
參數

$post_id

(int) (可選)您希望為其排序分類法的文章的ID

引數選項

taxonomies

(array)

array( 'post_tag' ) – 預設

number

(int)

99 – 預設

format

(string)

list – 預設
array
name

orderby

(string)

name – 預設
count:根據使用計數排序的項目順序

order

(string)

ASC – 預設
DESC

回報問題,貢獻程式碼或修正問題

https://github.com/GigaOM/go-taxonomy/

外掛標籤

開發者團隊

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

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

原文外掛簡介

Registers taxonomies programtically from a config array and provides other helper functions.
We needed a way to add taxonomies that we rely on accross sites and managing those was becomeing cumbersome. This allows us to manage them via a config array.
The plugin also provides workarounds for limitations in WordPress handling of terms in feeds and post term sorting.
Sorted Terms
There’s also a sorted_terms helper function you can use in plugins and templates like this:
go_taxonomy()->sorted_terms( $post_id, $args );
Parameters
$post_id
(int) (optional) The ID of the post you want to get sorted terms for
Argument Options
taxonomies
(array)

array( ‘post_tag’ ) – Default

number
(int)

99 – Default

format
(string)

list – Default
array
name

orderby
(string)

name – Default
count : terms ordered by their usage count

order
(string)

ASC – Default
DESC

Report Issues, Contribute Code, or Fix Stuff
https://github.com/GigaOM/go-taxonomy/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon