Creating Member Only Pages / Posts (WordPress)

Creating A Member Only Directory

To create a member only directory, set the visibility settings of all your directory profile tabs under Customization > Directory Profile. Enable the Show only if user viewing page has any of these folders/labels option, and select the appropriate folders/labels to provide access to. If every tab of the profile requires a folder/label, then members will be required login to view the directory.

Creating A Member Only Event Calendar / List

To create a member only event calendar or list, set the visibility settings of all your event categories - go to Event Calendar, then click on Setup Event Categories. Enable the Only allow following members to view events in this category option, and select the appropriate folders/labels to provide access to. If every event category requires a folder/label, then members will be required to login to view the event calendar/list.

Hiding Wordpress Pages / Posts From Non-Members

Simply use the following shortcode at the top of the page or post to make the content of the page/post accessible for members only:

[memberonly]

Note: If you are using MemberFindMe plugin version 4.X and earlier, you will need the MemberFindMe Login Connector plugin.

Protecting Part Of The Content

You may place the shortcode in the middle of the page/post to restrict content below the shortcode to members only, and make content above the shortcode available to the public.

You can also enclose content you wish to restrict by using the closing [/memberonly] shortcode. For example:

[memberonly]This content is members only.[/memberonly]

Who Gets To View Member Only Content?

By default, only members who are in your Members folder, whose membership is not expired, can view the member only content. You can modify which folder the account must be in (discussed below). You can also modify how long after membership expiration before the member is unable view the member only content. This setting is found under Organization Settings > Integration > Membership Settings. To disable membership expiration checking, enter the number of days as 999.

Restricting Content To Certain Membership Levels Or Labels

To restrict access to certain membership levels or labels, use the shortcode:

[memberonly label="..."]

For example [memberonly label="business member"].

You can also restrict content to more than 1 label by separating the labels with a comma, for example [memberonly label="membership committee,marketing committee"]. If your label or membership level name contains a comma, you should escape the comma, for example [memberonly label="label%2C1,label%2C2"].

Restricting Content To Members In Specific Folders

To restrict access to certain folders, use the shortcode:

[memberonly folder="..."]

For example [memberonly folder="Sponsors"].

You can also restrict content to more than 1 folder by separating the folders with a comma, for example [memberonly folder="Members,Pending"].

Displaying Content To Non-Members

You can display content to non-members by using the shortcode:

[memberonly false]

You can combine this with labels/folder restrictions, for example:

[memberonly folder="Members,Pending" false]

Displaying Different Content To Different Members

You can display different content on a page depending on membership level, labels or folders by using memberonly content blocks:

[memberonly level="Gold"]Content for gold members[/memberonly]
[memberonly level="Silver"]Content for silver members[/memberonly]
[memberonly level="Bronze"]Content for bronze members[/memberonly]
[memberonly level="Gold,Silver,Bronze" false]You are not a member[/memberonly]

Non-Member And Error Messages

You can configure the messages displayed to the user when they are not permitted to view the content under Plugin Settings.

Additional Options

To customize the message displayed to non-members or members not allowed to access content:

[memberonly message="..."]

To omit the sign-in box for non-members:

[memberonly nologin]

You can combine options, such as displaying a custom message and omitting the login box:

[memberonly message="..." nologin]

To redirect non-members (or members not allowed) to a different page (replace ... with the url):

[memberonly nonmember-redirect="..."]

To display a membership sign-up form for non-members:

[memberonly nonmember="join"]

To display a form or cart for non-members:

[memberonly nonmember="!form/..."]