
內容簡介
總結:Post Order Control 提供直觀的拖放界面,可在 WordPress 管理員中直接重新排序文章、頁面和自訂文章類型。此外,這個外掛考慮了可存取性和主題兼容性,並使用 WordPress 的標準 menu_order 欄位以確保最大的相容性。
問題與答案:
1. Post Order Control 提供哪些主要功能?
- 直接在 WordPress 管理員中拖放排序文章/頁面清單
- 使用內建 menu_order 欄位以確保最大的主題相容性
- 具有分頁設定和全面文件的現代管理介面
- 可針對分類、標籤和自訂分類排序
- 自動套用設定,可在前端自動使用自訂排序
- 使用 REST API 進行提取/保存排序,並具有 nonce 和能力檢查
- 提供 postordercontrol_get_ordered_posts() 輔助功能,方便主題整合
- 提供匯出/匯入功能,可備份排序數據
- 具有鍵盤導航和螢幕閱讀器支持的可存取設計
- 內含 POT 檔案,準備好進行國際化
2. 這個外掛如何運作?
- 透過 WordPress 的內建 menu_order 欄位來儲存文章排序
- 拖放更新文章的 menu_order 值
- 主題查詢使用 orderby => 'menu_order' 可自動尊重您的自訂排序
- 不需要自訂數據庫表格或複雜查詢
- 與支援 menu_order 的任何主題或外掛完全相容
3. 如何與主題整合?
- 提供多種整合主題的方法:
- 方法一:輔助功能(推薦)
- 方法二:標準 WP_Query
- 方法三:自動套用(全域)
4. 這個外掛的隱私政策如何?
- 這個外掛不會收集、儲存或傳輸任何個人數據,所有排序數據均以 WordPress 的標準 menu_order 欄位和分類 meta 儲存在本地 WordPress 數據庫內。
外掛標籤
開發者團隊
② 後台搜尋「Post Order Control – Drag, Drop & Reorder Posts and Post Types」→ 直接安裝(推薦)
原文外掛簡介
Post Order Control provides an intuitive drag-and-drop interface for reordering posts, pages, and custom post types directly in the WordPress admin. Built with accessibility and theme compatibility in mind, this plugin uses WordPress’s standard menu_order field for maximum compatibility.
Key Features
Drag-and-drop ordering directly in WordPress admin post/page lists
WordPress Standard: Uses built-in menu_order field for maximum theme compatibility
Modern admin interface with tabbed settings and comprehensive documentation
Taxonomy ordering for categories, tags, and custom taxonomies
Auto-apply option to automatically use custom order on frontend
REST API for fetching/saving ordering with nonce and capability checks
Helper function postordercontrol_get_ordered_posts() for easy theme integration
Export/Import functionality for backing up ordering data
Accessible design with keyboard navigation and screen reader support
I18n ready with included POT file
How It Works
This plugin uses WordPress’s built-in menu_order field to store post ordering:
Drag-and-drop updates the menu_order value for each post
Theme queries using orderby => 'menu_order' automatically respect your custom order
No custom database tables or complex queries needed
Full compatibility with any theme or plugin that supports menu_order
Theme Integration
The plugin provides multiple ways to integrate with your theme:
Method 1: Helper Function (Recommended)
php
$posts = postordercontrol_get_ordered_posts( array(
'post_type' => 'post',
'posts_per_page' => 10,
'post_status' => 'publish',
) );
Method 2: Standard WP_Query
php
$query = new WP_Query( array(
'post_type' => 'post',
'orderby' => 'menu_order',
'order' => 'ASC',
'posts_per_page' => 10,
) );
Method 3: Auto-Apply (Global)
Enable automatic ordering for all frontend queries in the plugin settings.
Taxonomy Ordering
The plugin also supports drag-and-drop ordering for taxonomies:
Enable taxonomies in the Advanced settings tab
Drag and drop terms in taxonomy admin pages
Use wp_list_categories() with orderby => 'meta_value_num' and meta_key => 'postordercontrol_term_order'
Capabilities
By default, users with edit_posts capability can manage ordering
Optionally restrict to manage_options (Administrators only) via Settings
Support
For support, feature requests, or bug reports, please visit the plugin’s support forum or create an issue in the repository.
Privacy Policy
This plugin does not collect, store, or transmit any personal data. All ordering data is stored locally in your WordPress database using WordPress’s standard menu_order field and term meta.
Credits
Built with ❤️ by wpunicorn. Uses WordPress’s built-in functionality for maximum compatibility and performance.
