Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $terms = get_the_terms($post->ID,'type');
- foreach ( $terms as $term ) :
- $typeName = array();
- $typeName[] = $term->name;
- ?>
- <small><?php echo implode(', ', $typeName); ?></small>
- <?php endforeach; ?>
- $terms = get_the_terms($post->ID,'category');
- $typeName = array();
- foreach ( $terms as $term ) {
- $typeName[] = $term->name;
- } ?>
- <small><?php echo implode(', ', $typeName); ?></small><?php
- $terms = get_the_terms($post->ID,'category');
- $typeName = wp_list_pluck($terms,'name'); ?>
- <small><?php echo implode(', ',$typeName) ;?></small><?php
- $terms = get_the_term_list( $post->ID, 'category', $before = '', $sep = ', ', $after = '' ); ?>
- <small><?php echo $terms; ?></small><?php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement