I have a custom post type; posts of this type can have either one or two categories associated with them. I need to display the names of the categories that are associated with each of these custom posts within the loop. Is there a way to do this?

1 Answer 1


Assuming you have added the category taxonomy to your Custom Post Type, you can simply call the_category().

Alternately, if you're using a custom taxonomy, you can echo the results of get_the_terms( $id, $taxonomy ).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.