WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. George
    Member
    Posted 7 months ago #

    Hi all,

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

    e,g;
    member name: Santa
    Group Name : Group 1, Group 2

    Can anyone share?

    http://wordpress.org/plugins/simple-staff-list/

  2. dkeenan
    Member
    Posted 6 months 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
    Member
    Posted 1 month ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic