BuddyX
Get BuddyX Pro

Recipe: Build a private members-only community

Free theme

What you'll build: A community that only approved, logged-in members can see. Visitors land on a sign-in page, and members get profiles, a feed and a branded menu.

Time: ~45 minutes

Prerequisites:

  • BuddyX activated (Quick Start Step 1)
  • A community plugin: BuddyNext or BuddyPress (Step 1 covers the choice)
  • Admin access

What this changes

BuddyX styles your community. It does not lock content. The lock comes from a plugin, and BuddyX looks right behind it. This recipe puts the three pieces together: a community engine, a gate, and a sign-in experience that matches your brand.

Step 1 - Install a community engine (5 minutes)

  1. Install BuddyNext (the modern choice for a new community) or BuddyPress (if you already use it).
  2. Turn on the pieces you need: profiles, the feed, and groups or Spaces.

See BuddyNext with BuddyX or Community with BuddyPress for what BuddyX adds around each one. If you want the full community setup first, follow Set up your community.

Step 2 - Decide who can join (5 minutes)

  1. Go to Settings -> General.
  2. Under Membership, tick Anyone can register only if you want open sign-ups. Leave it off for invite-only or paid access.
  3. Go to Appearance -> Customize -> Header.
  4. Turn off Register link if people should not see a sign-up link. Keep the sign-in link on.

Click Publish.

Step 3 - Add the gate (10 minutes)

BuddyX has no built-in "members only" switch. Choose one plugin:

  • BP Private Site - sends logged-out visitors to the sign-in page. Good for a simple private community.
  • MemberPress, Paid Memberships Pro or Restrict Content Pro - paid tiers, content rules and recurring billing.

Set the rule to cover your whole site, then keep the sign-in page and the registration page open to everyone.

Step 4 - Point sign-in at your community page (5 minutes)

  • With BuddyNext, BuddyX already sends Log in, Register and Forgot password to the BuddyNext sign-in hub. Nothing to switch on.
  • With another sign-in page, go to Appearance -> Customize -> General -> Special Pages and set the Login Page. A page you map here wins over the BuddyNext routing. See Layout and page mapping.
  • To brand the WordPress login screen, use Appearance -> Customize -> Login Page. See Login Page.

Branded sign-in page for a private community, showing the site logo and a sign-in form

Step 5 - Build the member menu (5 minutes)

  1. Go to Appearance -> Menus.
  2. Build a Primary menu with the pages members need: Feed, Members, Spaces or Groups, Help.
  3. With BuddyNext, build a second menu for the profile dropdown and assign it to the User Menu location. Only top-level items show.

Step 6 - Set your brand (10 minutes)

  1. Open Appearance -> Customize -> Colors and Dark Mode and set your brand color. BuddyNext and the other Wbcom plugins follow it. See Color scheme.
  2. Upload a Logo and an optional Dark Mode Logo in Site Identity.
  3. Decide on dark mode. The visitor toggle is on by default. See Dark mode.

Step 7 - Test as a stranger (5 minutes)

  1. Open a private browser window, so you are logged out.
  2. Visit your home page, the members page and a group page. Each should send you to sign-in.
  3. Type a member name in the search box. Check that no private result shows.
  4. Sign in as a test member and confirm the feed, profile and menu work.

Result

Only members see your community. Everyone else sees a branded sign-in page.

Related