WordPress plugin intelligence profile

Custom Taxonomy Sort

Custom Taxonomy Sort allows you to explicitly control the sort order of all taxonomy terms.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.3
Current version1.1.5
WordPress coverageTested up to WordPress 3.3
Minimum stackWP 3.1 · PHP —
Directory statusactive
Last directory update13 Dec 201114y ago
Active installations300Adoption metric — not a quality score
WordPress.org rating4.0 / 5 from 14 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Custom Taxonomy Sort version 1.1.5 as active, updated 14y ago and tested up to WordPress 3.3.

Overview

About this plugin

Surprisingly, WordPress does not provide a mechanism for sorting taxonomies by a custom defined order. Taxonomies can only be sorted by name or id. Custom Taxonomy Sort allows the average user a mechanism to define and display terms in a specified order.

After installing Custom Taxonomy Sort, each taxonomy term will have the ability to have a “tax-order” value associated with it. This order is specified by doing the following:

  • Go to any taxonomy add or edit screen (e.g., wp-admin/edit-tags.php?taxonomy=category)
  • Fill in a numeric value for the “Order” field. By default, the order will be ascending, meaning it will sort from low to high (e.g., 1, 2, 3). These values can be added on the Add Taxonomy screen, the Edit Taxonomy screen, or through the Quick Edit panel.
  • Observe all of your terms automagically being sorted in the order you specified

Custom Taxonomy Sort automatically applies the sort order to all instances in which the terms are displayed. All you need to do is define that order.

Manual Mode

In addition to automatically sorting the terms, Custom Taxonomy Sort allows developers to override the automatic sort to offer finer control over how terms are displayed in different parts of WordPress. page=custom-taxonomy-sort-settings). Once “Automatic Sort” is switched to “Off”, the terms will no longer be sorted automatically by the custom order.

Instead, the custom sort order can be envoked with a new parameter for the “orderby” argument. Custom Taxonomy Sort allows you to use the following argument to access a custom sorted list of terms using “get_terms”

>

Voila! Now, your terms will only be sorted by the specified order in the places that you want it sorted in this order. All other instances of displaying terms will revert to WordPress’ default of sorting the terms by name.

, 3, 2, 1) order by adding the “order” argument.

>

>

Acknowledgements

  • Thanks to Jacob M Goldman for his excellent Simple Term Meta plugin, which made programming the term meta quite simple.
  • Thanks to hydrowire for pointing out a bug fixed in 1.1.1
  • Thanks to “Mosey” for pointing out a bug with a situation in which order did not work for a custom taxonomy
  • Thanks to DUCK__BOY1981 for pointing out a bug where the column values where overridden inappropriately
  • Thanks to @martindj for pointing out a bug where the column value returned incorrectly
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • category
  • sort
  • taxonomy
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.3

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.3.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.3
Minimum requirementsWordPress 3.1 · PHP not listed
Update activity13 Dec 201114y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.