views:

42

answers:

1

I am creating a custom post type called article and it has a custom field called category. The categories are hierarchichal and they can reach a large number.

Is it possible to make the categories in the admin page collapsible similar to a tree that can fold/unfold. This is to make the user experience better while creating a new article.

Here is the code to achieve this:

register_taxonomy("Categories", array("article"), array("hierarchical" => true, "label" => "Categories", "singular_label" => "Category", "rewrite" => true));
A: 

I was able to solve this using Jquery code. Using custom script, I was able to achieve the folding behavior of the categories. The steps I did are documented here: http://webypedia.com/articles/how-to-have-collapsible-folding-and-expandable-categories-in-wordpress-admin

Giljed Jowes