Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

The Wordpress codex has an example of the register_taxonomy() function at http://codex.wordpress.org/Taxonomies that shows arguments that are not documented in http://codex.wordpress.org/Function_Reference/register_taxonomy.

In particular args['sort'] and args['args'][order_by].

What's the story with these?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I suspect the Taxonomies Codex entry is simply out of date.

Per source, there are no 'sort' or 'orderby' args for register_taxonomy().

Given the purpose of the register_taxonomy() function, it doesn't even really make sense for this function to include sort/orderby parameters. Such parameters would be relevant to listing taxonomy terms, not to registering the taxonomy itself.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.