內容簡介
這款外掛可以用於對類別、標籤和自訂分類進行排序。此外掛主要是為了協助佈景主題開發人員。
此外掛支援多站點安裝。
需求
最低需求是您必須至少安裝 WordPress 3.5。
範例使用方式
從自訂分類中提取排序後的條款將預設啟用:
$terms = get_terms( 'your-taxonomy-name' );
如果您希望按名稱排序(禁用外掛的自訂排序),則必須將「i_order_terms」設置為「false」:
$terms = get_terms( 'your-taxonomy-name', 'i_order_terms=0' );
警告
此外掛在「term_taxonomy」表中新增了一列,安裝前請務必備份您的數據庫。當您刪除外掛時,此列將被刪除。
外掛標籤
開發者團隊
原文外掛簡介
Plugin can be used for reordering categories, tags and custom taxonomies. This plugin is primarily intended as an aid to theme developers.
Plugin supports multisite installation.
Requirements
The minimum requirement is that you have at least WordPress 3.5 installed.
Example usage
Fetching sorted terms from a custom taxonomy will be enabled by default:
$terms = get_terms( 'your-taxonomy-name' );
If you wish to sort by name (disable plugin’s custom sorting) you will have to set ‘i_order_terms’ to ‘false’:
$terms = get_terms( 'your-taxonomy-name', 'i_order_terms=0' );
Warning
Plugin adds a new column to the ‘term_taxonomy’ table, make sure to backup your database before installing. Column is removed when you delete the plugin.
