• Resolved wolfhelp

    (@wolfhelp)


    Is their any functionality to generate a directory for a group and display it on a wordpress page?

    For example, if I have a group called “Employees”, would I be able to list all users in that group on a page?

    Or would I have to work with the database tables directly to achieve something like this?

    https://wordpress.org/plugins/groups/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I am also looking for this option and the possibility to show like address information only when you are logged in

    Plugin Author itthinx

    (@itthinx)

    Hi,

    There are some basic options, both are really basic as they simply list the usernames for the group indicated but you can derive a more sophisticated implementation from those:

    a) Using the [groups_group_info] shortcode:

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

    See http://docs.itthinx.com/document/groups/shortcodes/groups_group_info/

    b) Using the [groups_list_users] shortcode:

    [groups_list_users group="Registered"]

    This one requires the example implementation available here: http://github.com/itthinx/groups-list-users

    Cheers

    Thread Starter wolfhelp

    (@wolfhelp)

    Thank you so much itthinx. I was able to use your suggestion B to implement [groups_list_users] to make it work. The only thing is (which I probably didn’t really explain in original email), I’d like to pull the group user’s first name, last name, and email. I was able to modify the group-list-users plugin to generate the table exactly how I want with this info. The only issue I’m facing now is that I’d like to sort the table alphabetically by user’s last name.

    Any suggestions for an easy way to do this. I was thinking about dumping the group info into an array and then sorting the array before outputting the results. But if there’s an easier way I’d love to know.

    Thanks,
    wolfhelp

    Plugin Author itthinx

    (@itthinx)

    @wolfhelp I would rather recommend to implement a comparison function for uasort instead which takes the array of user objects and compares them based on the last_name.

    Note that you can fork the original repository in case you would like to suggest having the changes incorporated.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Generate directory for specific groups’ is closed to new replies.