Multiple aMember Membership Levels and WordPress

There is a newer article on WordPress + aMember integration here.

There are several creative ways to use WordPress in conjunction with aMember to manage a premium membership site. The following article walks through setting up basic WordPress and aMember for article restriction based on the ‘WordPress Role’ assigned to each post/page.

If you require a more advanced aMember+WordPress integration or need someone to integrate aMember with your CMS, contact me with your specs.

Protecting Folders

Out of the box aMember provides great folder protection. Using aMember’s ‘folder protection’ feature allows protection of the entire WordPress directory, or individual folders within WordPress.

Folder protection even works alright for sites with multiple levels of membership if you’re willing to organize all your posts into base categories matching your membership levels or consider using a plugin to restrict access on a per article basis.

Restricting Access Per Post/Page

Download the View Level plugin and install on in your
..wp-content/plugins folder as with any WP plugin. That’s it.

Now when you are in the Write > Post/Page admin area you can add a custom field with the key of viewlevel and a value. This value is the same as the ‘WordPress Level’ setting in each of the aMember subscription products.

Creating Multiple Membership Levels

Let’s say we have a membership site with Gold, Silver and Platinum membership levels. Log into your aMember admin and click ‘Manage Products’. Create a product called ‘Gold’. Since Gold is our first tier of membership we’ll give it a membership value of 1.

In the same Product settings page, scroll down to ‘WordPress Level’ and select ‘1’. Also select the WP role your new members will hold upon subscribing, ‘subscriber’ being the default.

Repeat these steps for as many membership levels as you need. So Silver could be level 2 and Platinum 3… and so on.

Setting the View Level of Each Article

When you Write or Manage a Post or Page you can add a custom field with the key ‘viewlevel‘ and the value that matches the ‘WordPress Level‘ you entered in the corresponding subscription product under ‘manage products’ in your amember admin panel.

Using our 3-level memberships example above, a Gold level article would be given a custom field of viewlevel and a value of 1. A Silver level article would be given a custom field of viewlevel and a value of 2. A Platinum level article would be given a custom field of viewlevel and a value of 3.

Create some test users, activate their accounts in the amember admin panel. Then test the various amember user accounts to verify that posts viewed are appropriate for the membership level to which each user belongs.

If you’re having trouble getting posts to display according to the membership level, take a look at Troubleshooting aMember WordPress Levels or hire us.

Erin Bruce