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.

Is it possible to add categories to a Custom Post Type in WordPress?

share|improve this question
add comment

2 Answers

Put the following in your theme's functions.php file (changing my-custom-post-type to be whatever your Custom Post Type is, of course):

register_taxonomy_for_object_type('category','my-custom-post-type');

share|improve this answer
add comment

I found this link to be helpful with the full function call and hooks to target, it even mentions the distinction between if the custom post type was created by a plugin: http://pippinsplugins.com/add-already-registered-taxonomy/

share|improve this answer
add comment

Your Answer

 
discard

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