How do I display the taxonomy for a custom post type in an array
As has already been noted, you can do this by iterating over each of the terms, which are WP_Term objects. Each of those WP_Term objects has a name property. So you’d do it like this: $terms = get_the_terms( $post->ID, ‘cpt_saving-type’ ); $terms = is_array( $terms ) ? $terms : array(); foreach ( $terms as $term … Read more