WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've defined a custom post type. I've defined a custom taxonomy for this custom post type. I've populated the custom taxonomy. How do I make the list of custom taxonomy values show up in the admin edit page of the custom post type? So I can assign one or more custom taxonomy values to the custom post type post? Thanks

share|improve this question

You can either set the taxonomies parameter of register_post_type, which accepts an array of taxonomies, or set object type to your custom post type (or array of types) when you register your taxonomy, or you can use the register_taxonomy_for_object_type function.

share|improve this answer
I've already tried the first method of setting the taxonomies param of register_post_type. The only thing that shows up in the admin edit page is a heading for my custom taxonomy with a text entry box to add new custom taxonomy values. But I am expecting to see a list check boxes, one for each pre-existing custom taxonomy value. Just like you see when editing a normal post and you see a list of pre-existing cateogry values. – Greg Turner Nov 4 '11 at 14:21
@Greg Turner - as @Kevin Langley Jr. mentions in his answer, you're taxonomy is defined as non-hierarchical (like the default post tags), set it to hierarchical => true and it will behave like categories, with a tree of check boxes for adding terms. – Milo Nov 4 '11 at 16:49
Thank you!!! Setting hierarchical => true is the missing piece in my understanding. – Greg Turner Nov 6 '11 at 15:09

When registering your custom taxonomy make sure to set heirarchical to true and you will get a taxonomy similar to Categories.

Codec: Register Taxonomy

share|improve this answer
If this worked, please accept the answer. – Kevin Langley Jr. Nov 7 '11 at 21:38

Your Answer


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.