WordPress.org

Ready to get started?Download WordPress

Forums

Groups
[resolved] Shortcode to list all users for a group (4 posts)

  1. arny543
    Member
    Posted 1 year ago #

    A GREAT plugin!

    Quick question on the shortcode needed to list all users in a group.

    Assume it is [groups_user_groups] ?

    Can you detail how the attributes are used for the above, or direct me to the correct short code?

    Tx

    http://wordpress.org/extend/plugins/groups/

  2. itthinx
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks :)

    That shortcode lists a user's groups. To list the users in a group use the following short code as in this example:

    [groups_group_info group="Registered" show="users"]

  3. fai714
    Member
    Posted 1 year ago #

    That shortcode is perfect for me as well, but is there a way to show the user's name or nickname instead of their username? Great plugin btw, absolutely needed it.

    Found it!
    Changed line 109 of class-groups-shortcodes.php from $user->user_login to $user->display_name

  4. flegmatiq
    Member
    Posted 1 year ago #

    @fai714 Look also here!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.