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

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

內容簡介

Whaze Term Order for Posts 允許使用者在 Gutenberg 編輯器側邊欄中為每篇文章的分類詞彙啟用自訂排序。透過管理設定頁面輕鬆配置可管理的文章類型和分類,無需撰寫程式碼。

【主要功能】
• 透過設定頁面配置文章類型與分類詞彙配對
• 支援拖放、鍵盤操作及上下移動按鈕
• 提供「重設為預設排序」按鈕
• 自訂排序與文章及其修訂版一同儲存
• 自動應用自訂排序於原生區塊及 REST API
• 完全可翻譯

外掛標籤

開發者團隊

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

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

原文外掛簡介

Whaze Term Order for Posts lets you enable per-post custom ordering of taxonomy terms directly from the Gutenberg editor sidebar. Configure which post types and taxonomies are managed via the admin settings page, or register them programmatically in code.
Admin settings page:
Go to Settings → Term Order for Posts to enable term ordering for any post type / taxonomy combination — no code required.
For developers (optional):
Register a post type / taxonomy combination programmatically:
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:

Settings page to configure post type / taxonomy pairs — no code needed.
Drag-and-drop, keyboard and “move up / move down” buttons in the block editor sidebar, with screen reader announcements.
“Reset to default order” button.
Order saved with the post (and its revisions), for any post type — including post types without custom fields support.
Opt-in auto-apply: custom order applied to native blocks, theme functions using get_the_terms() and the REST API (term ID lists, term endpoints, _embed).
Primary term helper and optional “first ordered category” in %category% permalinks.
REST API field term_order, WP-CLI commands and Abilities API support (WordPress 6.9+).
Falls back to default WordPress term order when no custom order is set; cleaned up automatically when terms are removed.
Fully translatable.

延伸相關外掛

文章
Filter
Mastodon