⚡ End of Year Sale! 10% OFF all paid plans. Use code PG10JAN. Explore Plans

Blog

How to Display Members of Selected Group in WordPress

Display Members of Selected Group with ProfileGrid

Once you start accepting registered users on your WordPress site, setting up a member display page becomes a valuable next step. It’s even more effective if you can showcase members from specific groups on designated pages. These pages not only highlight the strength of your community but also attract more users to your site.

In this guide, we’ll walk you through using the ProfileGrid plugin to display members from a particular group on your membership site. Let’s get started by activating the plugin from your site dashboard.

Shortcodes

The shortcode for displaying group members is [profilegrid_group gid=”x”], which allows you to showcase the members of a specific group on the frontend. To create a Group Page for a particular group, simply copy this shortcode and paste it into a page.

Before moving forward, let me explain how to find the value for “x.” When you create a group, it appears on the Group Manager Page. Each group has a unique group ID, which you can find in the bottom left corner of the group listing.

Display Members of Selected Group manager

Replace “x” with the group ID of the members you want to display on the frontend.

Here are some key shortcodes related to member display. For more detailed information, refer to the ProfileGrid shortcode list article.

[profilegrid_member_count gid=”x”]
[profilegrid_manager_count gid=”x”]
[profilegrid_members_cards gid=”x”]

Creating Single Group Page

Now it’s time to add the single group page shortcode to a new page. In your WordPress dashboard, go to the Pages section and create a new page.

As shown in the example image, I’ve created a Group Page and pasted the [profilegrid_group gid=”3”] shortcode, replacing “x” with “3”. This will display the members of Group 3 on the frontend of your site. Once you’re ready, click ‘Publish’ to finalize your setup.

Display Members of Selected Group frontend

Above is the frontend view of the newly created Group Page, displaying all members of the Education group, which has a group ID of 3 on the backend. This feature is incredibly valuable for a members based site, as showcasing your member base can attract new users who are drawn in by your community’s strength

Assigning a Group Page

This is a very important feature of the plugin where you finally assign a page with ProfileGrid. The plugin offers a few default pages. One can find them under the General option of the Global Settings page.

Display Members of Selected Group general settings

In the image above, you can see a list of pages provided by the plugin. To integrate your newly created Group Page, select it from the dropdown menu next to “Group Page.” This action adds your Group Page to the plugin’s predefined pages. However, keep in mind that you don’t need to assign every Group Page you create from this section.

Summary

To wrap up, showing group members on your members based site with ProfileGrid is an easy and effective way to build a stronger sense of community. By creating Group Pages and using the simple shortcodes, you can highlight members of specific groups, making your site more engaging and attractive to new users. This feature helps visitors see the strength of your community and encourages them to join. With ProfileGrid, managing and displaying your members becomes a smooth and straightforward process, enhancing the overall experience on your WordPress site.

Feel free to share your experience with implementing this feature in the comments below.

4 Comments

  1. Yohan

    Hello using this shortcode [PM_Group ID=”x”] Replacing x with the name of one of my groups.
    On the front-end it appears this message: Warning: Attempt to read property “group_options” on null in /home/u955605124/domains/hobby-meet.com/public_html/wp-content/plugins/profilegrid-user-profiles-groups -and-communities/public/partials/profile-magic-group.php on line 37 Here is the line 37 that corresponds, I don’t see the problem: $pmgroupoption = Maybe_unserialize($row->group_options);

    I don’t see the problem actually.

    my goal is to be able to display a list of members belonging to a group without other members being able to join the group from this page as the group is paid for premium members only premium members could join the group from another page on which I restrict the shortcode [PM_Group ID=”X”] to the premium member. And the latter would appear with the shortcode [PM_Group ID=”x”] Thank you in advance for your support.

    1. ProfileGrid

      Please ensure you are using the existing Group ID in the shortcode. You can find the Group ID on the group card in the dashboard. The group name cannot be used in the shortcode; you must use the Group ID.

  2. Ryan Grist

    How do users have a unique URL

    company.io/design-buddies/Joeblogs

    Currently I see it as

    company.io/design-buddies/my-profile

    How does this work if we have many signing up?

    Thanks

    1. ProfileGrid

      You can use the “User Profile Slug” extension to customize user profile URLs. For more details, please visit the following link: https://profilegrid.co/wordpress-user-profile-urls-custom-slug/

Leave a Comment

Your email address will not be published. Required fields are marked *