The member directory

The Directory module ships a public /members page so visitors and members can browse who’s part of your community.

Where it comes from

When the Directory module is enabled (default for new installs), MemberMode auto-creates a regular WordPress page at /members with the body

2 members

. That’s a normal page — you can edit its title, add intro copy above the shortcode, change the slug, restrict it via the Access module, or move the shortcode somewhere else entirely.

If you delete the page, MemberMode will not silently re-create it. To restore: create a new page and paste

2 members

into the body.

What members see

Each card shows the member’s display name, handle, avatar, and the members’s tagline (if their profile has one). Clicking a card opens that member’s profile.

Privacy filtering

The directory respects each member’s profile-privacy setting (configured by them at Account → Privacy):

  • Public profiles always appear
  • Members-only profiles only show to logged-in viewers
  • Private profiles only show to the member themselves
  • Specific roles profiles show only to viewers in the named roles

So a member who set their profile to Private doesn’t appear in the directory at all for anyone else. The count and pagination adjust automatically.

Configuring the listing

The shortcode accepts one attribute today: per_page.


2 members

Default is whatever’s set under MemberMode → Settings → Directory. Most communities run between 12 and 36 per page.

Hooks

The query builder is filterable, so themes and add-ons can extend the directory without forking it. Two useful entry points:

  • membermode_directory_query_args — modify the underlying WP_User_Query args before it runs (e.g. role filter, custom orderby).
  • membermode_profile_can_view — global filter that decides whether a viewer can see a profile; the directory query honours this.

Pro

Free covers a clean directory with privacy and one configurable knob. MemberMode Pro adds richer search (typeahead, multi-field filters), saved searches, presence (“online now” filter and badges), and per-card custom fields chosen by the admin.