Plugin / Custom Taxonomy Order

Marcel Pol

Frequently Asked Questions (FAQ)

Did you set the option for that taxonomy to use that custom order? Make sure to check it so the filters run with your taxonomy.
This plugin will only offer to sort them when the taxonomy is set to public. Make sure you use ‘register_taxonomy’ with the public parameter set to true (default).
When you use default functions like get_terms or get_categories, this should not be needed. If you do need to, you can apply the sorting for the taxonomy by using: ‘orderby’ => ‘term_order’.
This function only fetches the ID’s of the terms, so it is impossible to sort them by term_order. If you do need the sort_order, use a function like get_terms with the ‘child_of’ parameter. That will fetch an array of WP_Term objects that can be sorted.
If it is a much used plugin, can you tell me what is the name for the taxonomy? In the customtaxorder_wp_get_object_terms_order_filter it needs to be added, and the get_terms filter should not run on that taxonomy. The tag_cloud_sort filter should do that. If it is a custom taxonomy, you can also use a filter:
There is a bug with the the_tags function, where it will sort according to the setting for categories. This happens in the ‘customtaxorder_apply_order_filter’ function where the $args has two taxonomies but only one orderby can be returned.
This plugin only supports sorting the attributes/terms. These are the items like S, M and L. For sorting the taxonomies like ‘size’, you need to sort them on Woo’s attributes page.
For sorting the terms you need the manage_categories capability.
There is an admin page to sort them, and save them in the database. You can use a function to sort taxonomies themselves like this: name . "
"; } ?> The function requires a parameter with an array of taxonomy objects.
There are actions that you can use with add_action. ‘customtaxorder_update_order’ is being run when saving the order of terms in the admin page. You could add the following example to your functions.php and work from there. ‘customtaxorder_terms_ordered’ is being run after term array has been ordered with usort. Please be aware that this can be triggered multiple times during a request. You could add the following example to your functions.php and work from there.
Translations can be added very easily through GlotPress. You can start translating strings there for your locale. They need to be validated though, so if there’s no validator yet, and you want to apply for being validator, please post it on the support forum. I will make a request on make/polyglots to have you added as validator for this plugin/locale.

Ratings

4.8
69 reviews

Rating breakdown

Details Information

Version

2.10.0

First Released

10 Oct, 2013

Total Downloads

205,890

Wordpress Version

3.7 or higher

Tested up to:

5.3

Require PHP Version:

-

Tags

Contributors

Languages

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.