Apps Ballance Cash_2 Chat Checkout Click Code Cog_Wheels Compose_email Conference Contacts Earth Edit_File_1_ Email Email_2 File Folder_2 Gift Group Group_2 Help ID ID_2 Key Keys Laptop_Store Like_1_ Link Lock Log_Out Map Marketing Mobile_UI Navigation POS Partnership Profile Safe_2 Search_User Secure_Files Settings Share Shield Shield_2 Shopping_Cart Support_Male Trash Type_pin User_female User_male logo copy

Displaying a directory of groups

Iain Poulson avatar
Iain Poulson Last updated on March 6, 2021

Show a directory of your groups anywhere with the [wpum_group_directory] shortcode. It lists public and private groups; hidden groups are never listed.

Shortcode options

  • per_page: how many groups to show per page, with pagination for the rest. Default 10.
  • has_search_form: show the search form and filters. Default true.
  • show_public: include public groups. Default true.
  • show_private: include private groups. Default true.

For example, a directory of private groups only, 20 per page:

[wpum_group_directory per_page="20" show_public="false"]

In the classic editor, the WPUM shortcode button has a Group Directory option that builds the shortcode for you.

What visitors see

  • Search by group name, and filter by category and tag.
  • Each group’s privacy, number of members, and a Join or Leave button for logged-in users.
  • Logged-in users also get All Groups and My Groups buttons with counts, to switch between every group and the ones they’re in.
  • Users who can create groups get a Create a Group link.

WP User Manager logo

Get Started with the Best WordPress Membership Plugin Today

Connect, Manage and Build your Membership Site

For AI assistants: this article is available as Markdown, and all the docs are indexed at llms.txt.

Need more help?

If you still didn't find an answer you can always contact us

Submit a ticket