Linux 软件免费装
Banner图

Watrix Drag Drop Reorder

开发者 watrix
更新时间 2026年9月12日 15:40
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

custom post type post order page order category order drag and drop

下载

1.4.0 1.2.0 1.4.1 1.4.2

详情介绍:

Watrix Drag Drop Reorder is an all-in-one reordering plugin for the WordPress admin. Drag and drop rows right on the list screens you already use — no separate ordering screen. Features: 日本語補足:

安装:

  1. Upload the plugin to wp-content/plugins/ or install it from Plugins > Add New, then activate it.
  2. Open the Posts, Pages, Categories or Tags list and drag rows to reorder them. The new order is saved automatically.
  3. Open Settings > Sort Order to toggle features, reorder the admin menu, or opt in to front-end ordering.

屏幕截图:

  • Reordering categories on the Categories list.
  • Sortable Author / Categories / Tags / Comments columns.
  • Settings page with feature toggles and admin menu reordering.

升级注意事项:

1.4.2 "Apply term order on front" now really applies the order while another term ordering plugin is still active, so product tag order no longer jumps when you deactivate that plugin. A taxonomy with no saved order is left untouched. 1.4.1 Keeps WooCommerce product lists in WooCommerce's sorting when "Apply post order on front" is on, and adds "Import current display order" to keep the order shown by Category Order and Taxonomy Terms Order after you deactivate it. 1.4.0 Choose which taxonomies to reorder, and import the order saved by Category Order and Taxonomy Terms Order and similar plugins (with undo). WooCommerce product categories are left to WooCommerce's own ordering; if you added product_cat with a filter in 1.3.0, see the changelog. 1.3.0 You can now override the label and icon of any admin menu item, and customize the separator color and thickness — all from the settings page. 1.2.0 Separators and headings are now added separately, headings appear as a section band in the sidebar, and the settings list is redesigned with drag handles and type badges. 1.1.0 You can now add, remove and label admin menu separators, and hide or restore core separators from the settings page. 1.0.0 Initial release.

常见问题:

Where is the order data stored?

Post and page order is stored in the core menu_order column of the posts table. Term order (categories, tags and the taxonomies you select) is stored in the term meta key _wddr_term_order; for taxonomies ordered by WooCommerce (product categories) the same value is also written to WooCommerce's term meta order. The feature toggles, the selected taxonomies, the top-level admin menu order, the custom and hidden admin menu separators, and the per-menu label / icon / separator-style overrides are stored in eight options (wddr_settings, wddr_term_taxonomies, wddr_admin_menu_order, wddr_admin_menu_separators, wddr_admin_menu_hidden_separators, wddr_admin_menu_labels, wddr_admin_menu_icons and wddr_admin_menu_separator_style). Import backups (the previous values of the terms an import changed and the order the import wrote) are stored per taxonomy in options named wddr_import_backup_{taxonomy} and wddr_import_backupdata_{taxonomy}, listed in wddr_import_backup_taxonomies (none of them is autoloaded), until you undo the import or discard the backup. No database tables are added or altered.

What happens when I uninstall the plugin?

Uninstalling deletes the plugin's own data: the options listed above and the _wddr_term_order term meta. WooCommerce's order term meta belongs to WooCommerce and is kept. The menu_order values are kept, because menu_order is a core field shared with other features (such as the page "Order" attribute); resetting it could break ordering you set elsewhere. Your content is never touched.

Why can't I drag rows?

Drag and drop is paused while the list is sorted by a column (for example after clicking the Title, Author or a taxonomy column header, or when you arrive via a link that includes a sort). Reordering a column-sorted list would be ambiguous, so the plugin disables dragging and shows an admin notice instead. Click "Show default order" in the notice (or remove the sort from the column header) to switch back to the saved order — dragging works again immediately. Also make sure the feature for that screen is enabled in Settings > Sort Order.

I reordered posts but the front end did not change. Why?

Front-end ordering is off by default so that activating the plugin never changes your public site. Enable "Apply post order on front" (and/or "Apply term order on front") in Settings > Sort Order. Note that sticky posts still appear first — that is standard WordPress behavior.

I dragged rows while filtering the list by category. What order was saved?

The global order. Watrix Drag Drop Reorder keeps a single order per post type (and per taxonomy); it does not store a separate order per category filter. Reordering a filtered list updates the global positions of the rows you see.

Can I use Watrix Drag Drop Reorder together with another ordering plugin?

No. Two ordering plugins change the same queries and fight over the result (for example, Category Order and Taxonomy Terms Order overrides the term order, and post ordering plugins write to the same menu_order field). Use one ordering plugin at a time. To switch without losing your order:

  1. In Settings > Sort Order, select the taxonomies you want to reorder under "Taxonomies" and save.
  2. Under "Import existing order", click "Check changes" and then "Import" for each taxonomy. Do this while the old plugin is still active — the data it saved stays in place either way. The order before the first import is backed up; "Undo import" restores it. If the old plugin is Category Order and Taxonomy Terms Order with Auto Sort on, you can instead click "Check current display order" and "Import current display order". That copies the order your site shows right now, which is the only way to keep it when the old plugin never saved an order (every term_order is 0) and the order is simply what the database returns. The settings page tells you whether its Auto Sort is on.
  3. Deactivate the old ordering plugin(s).
  4. Turn on "Apply post order on front" and/or "Apply term order on front" so the public site keeps the same order.
Tip: turning on step 4 before step 3 avoids a short moment in which visitors see the default order. For product categories, turn on "Apply term order on front" too if your theme or blocks read them by name (the Store API does), because WooCommerce applies its own order only to queries that do not ask for a specific order. Product categories ordered by WooCommerce need no front-end setting: WooCommerce applies its own order, which the import has updated.

The import timed out on a very large site. What now?

Run the import again. It only writes terms whose order is not yet up to date, so each run continues where the previous one stopped. The backup of an unfinished import is kept, so "Undo import" still returns to the order from before it started. "Check changes" shows 0 terms to update when it is complete.

Do I need to import post and page order from Real Custom Post Order, Intuitive Custom Post Order or Post Types Order?

No. These plugins store the post order in the core menu_order field, which Watrix Drag Drop Reorder reads and writes as is. After you deactivate them, the list screens keep the same order. For the public site, turn on "Apply post order on front" in Settings > Sort Order.

How does it work with WooCommerce product categories?

WooCommerce orders product categories (and product attributes) itself: it stores the order in the term meta order, sorts them that way everywhere, and adds its own drag and drop to the Product categories screen. To avoid two plugins fighting over the same screen and query, Watrix Drag Drop Reorder leaves these taxonomies to WooCommerce: it does not add its own drag and drop there and does not change their queries. When you import an existing order for product categories, the same order is written to WooCommerce's order meta as well, so the store shows the imported order right away. WooCommerce's previous order is backed up first and can be restored with "Undo import". To protect your store, the import is disabled when fewer than half of the terms have a saved order (it would mostly sort them by name; developers can change the ratio with the wddr_import_min_ordered_ratio filter), and "Check changes" shows how many terms WooCommerce currently orders differently — for example after you reordered them in WooCommerce — because importing again would revert them. With "Apply term order on front" on, WooCommerce's order is also applied to front-end queries of product categories that sort by name, such as the Store API, so the storefront keeps one order everywhere. Product tags are not ordered by WooCommerce, so they work like any other taxonomy. Developers can change which taxonomies are treated as WooCommerce-managed with the wddr_woocommerce_managed_taxonomies filter.

The order numbers looked odd right after my first drag on a large site. Is that a problem?

No. When existing posts have mixed or duplicate menu_order values, Watrix Drag Drop Reorder falls back to renumbering the visible page from the smallest value. This can temporarily overlap with neighboring pages, but the list stays stable (date is used as the secondary sort key) and the numbering self-heals the next time you reorder that page.

Which post types are supported?

Posts, pages and every custom post type that has an admin list screen (registered with show_ui). Custom post types work out of the box — no code needed — and can be turned off with the "Custom post type order" toggle in Settings > Sort Order. Hierarchical post types are reordered within the same parent, like pages. Developers can narrow or extend the list with the wddr_sortable_post_types filter.

Does it work with custom post types and taxonomies?

Custom post types are supported out of the box (see the previous answer). Custom taxonomies can be selected in Settings > Sort Order > Taxonomies (every taxonomy registered with show_ui is listed). Developers can still narrow or extend the selection with the wddr_sortable_taxonomies filter, which now receives the selected taxonomies.

Anything to know for very large sites?

Sorting the Categories/Tags columns on the Posts list uses a JOIN with GROUP_CONCAT, which is limited to the admin screens. Saving a term order reads the taxonomy with a single query and writes only the terms whose position changed, and the settings page only counts terms until you click "Check changes". Measured on a test site with 5,000 terms and 10,000 posts: saving a drag and drop on a term list takes about 40 ms, checking changes about 30 ms, and importing 5,000 terms about 1 second. Front-end ordering adds no extra queries.

更新日志:

1.4.2 1.4.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0