Conditional Value When No Taxonomy Terms Assigned
-
I have set up a custom Taxonomy for “Now Pouring” and I would like to know how to display a message “Not available right now.” when there aren’t any values assigned.
Right now, my page’s template is using:
<?php if ( get_the_term_list( $post->ID, 'portfolio_category', '', '<br />', '' ) ) : ?> <div class="project-info-box"> <h4><?php esc_html_e( 'Now Pouring At:', 'fusion-core' ) ?></h4> <div class="project-terms"> <?php echo get_the_term_list( $post->ID, 'pouring_at', '', '<br />', '' ) ;?> </div> </div> <?php endif; ?>
Can anyone help?
Thanks in advance
The page I need help with: [log in to see the link]
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Conditional Value When No Taxonomy Terms Assigned’ is closed to new replies.