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.

I have a custom post type and taxonomy so the user can post in a specific areas in the theme. User (admin) can add categories easily. But the categories that has been added through my taxonomy don't show up in wordpress regular posts category option.

I do not have any problem with displaying those posts on theme. My problem is to showing those custom categories in regular post's category option.

Is there a way to make ;

a custom category created by taxonomy to be shown in wordpress regular post's category section?

share|improve this question

migrated from stackoverflow.com Jul 16 '12 at 2:07

This question came from our site for professional and enthusiast programmers.

1 Answer 1

Yes, setting the $object_type, the second argument in the register_taxonomy function, set the value to an array including your custom post type slug and post.

register_taxonomy($taxonomy, array('post','your-custom-post-type-slug'), $args);

Review: http://codex.wordpress.org/Function_Reference/register_taxonomy

Also check out my plugin http://wordpress.org/extend/plugins/reed-write/. It makes custom post types and custom taxonomies a breeze.

share|improve this answer
    
Thanks for the answer. I just tried the code you have given but still the same. I can not see the custom category of taxonomy on wordpress regular post's category section –  zbgokalp Jul 15 '12 at 22:33

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.