PHP for displaying value of custom taxonomy
-
I know this is simple, but I just can’t seem to find a way to display the value assigned to a post’s custom taxonomy.
I created a custom Taxonomy named “Availability” and I simply trying to display it’s value using this code:
<div class="project-info-box"> <h4><?php esc_html_e( 'Availability:', 'fusion-core' ) ?></h4> <div class="project-terms"> <?php echo get_the_terms( $post->ID, 'availability', '', '<br />', '' ); ?> </div> </div>
You can see the page is displaying “Array” in the spot where I am trying to simply display the term – in this case is should be “Year-Round”
This type of PHP is generally way over my head, so I am sure it’s something simple. Any help is appreciated.
Thank you!
Daniel
The page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘PHP for displaying value of custom taxonomy’ is closed to new replies.