Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php global $post; ?>
- <?php if($post_terms = get_the_terms( $post, 'taxonomy_slug' )): ?>
- <div class="subtitle"><?php echo $post_terms[0]->name; ?></div>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement