Simple Category Order
Drag-and-drop ordering of categories and custom taxonomies in admin list. Uses term meta "custom_order".
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/sknetking/simple-category-ordring/archive/refs/heads/main.zipA lightweight plugin that enables drag-and-drop ordering of categories and custom taxonomies in WordPress admin, with frontend display support.
Description
Simple Category Order provides an intuitive way to reorder your categories and custom taxonomies directly from the WordPress admin interface. Key features:
- Drag-and-drop term ordering in admin
- Works with both categories and custom taxonomies
- Stores order in term meta (custom_order)
- Automatically orders terms on frontend
- Includes shortcode for displaying ordered terms
- Lightweight with no database overhead
- Supports hierarchical taxonomies
Installation
- Upload the plugin files to the
/wp-content/plugins/simple-category-orderdirectory - Activate the plugin through the 'Plugins' screen in WordPress
- Visit any taxonomy screen (like Categories) to start reordering
Upon activation, the plugin will automatically set default order values for all existing terms.
Usage
Admin Interface:
- Go to any taxonomy screen (Posts > Categories, or your custom taxonomy)
- You'll see a new "Order" column with numbers
- Simply drag and drop terms to reorder them
- The order is saved automatically
Frontend Display: The plugin automatically modifies term queries to use your custom order. No additional setup needed.
Using the Shortcode: Display an ordered list of terms anywhere using:
[ordered_categories taxonomy="category" hide_empty="false"]
Parameters:
taxonomy: The taxonomy to display (default: 'category')hide_empty: Whether to hide empty terms (default: false)
Custom Queries: You can create custom term queries using the 'custom_order' meta key:
$terms = get_terms([
'taxonomy' => 'your_taxonomy',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'meta_key' => 'custom_order',
'hide_empty' => false,
]);