Support » Plugin: Simple Staff List » How to display group name

Viewing 2 replies - 1 through 2 (of 2 total)
  • This took me a while to figure out but seems to work…

    If you are editing your single-staff-member.php template page, you will use the following code:

    <?php echo strip_tags(get_the_term_list( $post->ID, 'staff-member-group')); ?>

    This displays the group name in plain text. For more info on displaying custom post taxonomies you can look here: http://codex.wordpress.org/Function_Reference/get_the_term_list

    simenschi

    (@simenschi)

    Is there any way to show this as a shortcode in the internal loop editor?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display group name’ is closed to new replies.