[WordPress] 外掛分享: Whaze Term Order for Posts

首頁外掛目錄 › Whaze Term Order for Posts
WordPress 外掛 Whaze Term Order for Posts 的封面圖片
全新外掛
安裝啟用
尚無評分
剛更新
最後更新
問題解決
WordPress 6.0+ PHP 8.2+ v1.0.0 上架:2026-05-04

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Whaze Term Order for Posts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Whaze Term Order for Posts lets developers enable per-post custom ordering of taxonomy terms directly from the Gutenberg editor sidebar. The plugin is entirely code-driven: no settings page, no configuration UI.
For developers:
Register a post type / taxonomy combination:
add_action( 'init', function () {
whaze_term_order_for_posts_register( 'post', 'category' );
whaze_term_order_for_posts_register( 'movie', 'genre' );
} );

Retrieve ordered terms in templates or REST:
$terms = whaze_term_order_for_posts_get_terms( get_the_ID(), 'category' );

Features:

Drag-and-drop reordering panel in the block editor sidebar.
Order saved automatically with the post — no separate AJAX call.
Falls back to default WordPress term order when no custom order is set.
Unused order entries are cleaned up automatically when terms are removed.
REST API field term_order for headless use cases.
Fully translatable (i18n-ready).

延伸相關外掛

文章
Filter
Apply Filters
Mastodon