Category
is a specific taxonomy built into WordPress, the_category
only works with this single taxonomy, not custom taxonomies. To fetch terms from a custom taxonomy, use the_terms
:
the_terms( $post->ID, 'type' );
Category
is a specific taxonomy built into WordPress, the_category
only works with this single taxonomy, not custom taxonomies. To fetch terms from a custom taxonomy, use the_terms
:
the_terms( $post->ID, 'type' );