I don’t like the way the taxonomies are displayed within the WordPress admin and was wondering if anyone knew the best way to hook in and change it. Currently if I select some terms within my post those selected terms go to the top of the list and the hierarchy is broken making it visually confusing for the user.
Please see these images for an idea of what I’m talking about
I want to display the taxonomies exactly how they are displayed initially with just the correct terms ticked. Is there a way of doing this without having to edit the WordPress core directly, I can’t see any hooks for me to use.
Thank you for any help you can give!
Helen
There is a plugin by Scribu called Category Checklist Tree that disables this “feature”.
Backtrace
Let’s first check where this actually happens:
The meta box gets added on
post.php
andpost-new.php
screens.Then we move one file deeper into core to get to the definition/the meta box callback
The
categorychecklist
tab is the one that holds the list. Inside thediv
, we got a function namedwp_popular_terms_checklist($taxonomy);
.» Conclusion:
This means, that we ain’t got a real chance to intercept this on plain server side level with WP filters/hooks and PHP.
Doing something like…
… would simply disable the checked boxes completely.
will update if I got more information and (maybe a solution)