Simple Staff List
How to display group name (3 posts)

  1. George
    Posted 2 years ago #

    Hi all,

    I want to display all the group name that the person is member.

    member name: Santa
    Group Name : Group 1, Group 2

    Can anyone share?


  2. dkeenan
    Posted 2 years ago #

    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

  3. simenschi
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Staff List
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic