這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Anything Order by Terms

外掛說明

This plugin allows you to arrange any post types and terms with simple drag and drop within the builtin list table on administration screen. Save post order for each term.

Features

  • Support for any post types and taxonomies.
  • Multiple selection is available.
  • Capabilities aware. ‘edit_others_posts’ for post. ‘manage_terms’ for taxonomy.
  • No additional column in builtin tables.
  • No additional table in database.
  • Save post order for each term.
  • Woocommerce and Polylang compatibility.

螢幕擷圖

  • Enable/Disable arrangement with drag and drop on "Screen Options" tab. Reset bulk action.
  • Dragging items. Also support custom post type like Woocommerce product.
  • You can select multiple items by Ctrl(or Command on OS X)+Click.

安裝方式

  1. Upload ‘anything-order-by-terms’ to the ‘/wp-content/plugins/’ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

I don’t want some post types to be sortable.

Uncheck the “Order” option in “Show on screen” section on Screen Options tab to disable sorting.

I don’t want terms or post to be sortable.

Use filter. Place in you theme’s function.php file add_filter('Anything_Order/do_order/Post', '__return_false'); or add_filter('Anything_Order/do_order/Taxonomy', '__return_false');.

Why is the post order wrong when using the `get_posts` function?

As you can see from source code function get_posts default set suppress_filters param to WP_Query args. Therefore, filters specified by plugins don’t work. So if you need menu order or order within term add 'suppress_filters' => false to your args.

How do I reset the order?

Select the “Reset Order” option in bulk actions select and click “Apply”.

How do I select multiple items?

Ctrl(or Command on OS X)+Click toggle selection state of current item. Shift+Click select items between first selected item on the list and current item.

使用者評論

2018 年 3 月 20 日
Works with my there. The other plugins weren't. Easy to use. Recommend.
2017 年 5 月 10 日
I was in need to reorder page by its term. i created custom taxonomy for pages and want to reorder page by its term so each page has different order according to term. and this plugin helped me to save hours 🙂
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Anything Order by Terms〉的開發相關工作。

參與者

〈Anything Order by Terms〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Anything Order by Terms〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.4.0 – 2022-07-08

  • Fixed – WordPress 6.0 compatibility.

1.3.10 – 2022-07-06

  • Fixed bug with “Woocommerce + Polylang + WP All Import” package.

1.3.9 – 2022-04-22

  • Fixed – WordPress 5.7 compatibility.

1.3.8 – 2021-11-11

  • Fixed – Conflict with Wicked Folders plugin.

1.3.7 – 2020-11-04

  • Changed – WordPress 5.6 and Woocommerce 4.9 compatibility.

1.3.6 – 2020-11-04

  • Fixed – Wrong detect current term if Polylang is activated.

1.3.5 – 2020-07-21

  • Changed – WordPress 5.4.2 and Woocommerce 4.3.0 compatibility.