How to Add Categories to a Custom Post Type in WordPress


Konstantin Kovshenin
Daniele Vidal

Not very clean I agree but it will work. Note the action registration with the priority of 11 (which is quite late.) If you’d like to remove a taxonomy from an object type, you’ll first have to find out at what stage was the taxonomy added to the post type. In the above case, the default taxonomies are added during init with priority 0 (highest) so init with priority of 11 will work just fine.

Be the first to comment

Leave a Reply

Your email address will not be published.


*