I am using the Members plugin for the first time, and it is awesome.
The only downside that I have found thus far is in the documentation.
Below I outline how to use the plugin’s functionality in a custom WordPress page template to restrict the contents to a certain role.
Step 1: Install and activate the plugin.
Step 2: Create a role. In our case, we will call the role, “Staff”.
Step 3: Create a capability for that role. In our case, we will create a capability called, “view_staff_member_pages”.
Step 4: Add a user to the “Staff” role.
Step 5: Insert the following code into your template file:
Login to view this content.'; } } ?>
That’s it! I hope this helps.
More posts from themightymo.com
As I mentioned yesterday, I updated The Mighty Moo! WordPress theme and am releasing it to you, free of charge! There are a bunch of notable updates, including: Comment Template added Blog title and blog description display in header Post meta information display (tags, date, author, categories, etc.) Correct page title now displays by default…
About 1 year ago, I built The Mighty Moo! WordPress theme. It is a fun theme that features an AJAX “accordion” navigation system built on MooTools and MooFx. Today, I spent much of the day updating the theme so that more novice users will be able to use it out-of-the-box. It isn’t quite ready for…
Today I spent some time installing Intense Debate (ID) on cryns.com. ID is a nice, little plugin for WordPress (fyi: ID was purchased by WordPress’ parent company in September 2008) that manages your comments. With WordPress 2.7’s threaded comments feature, ID’s feature set isn’t all that much of an improvement. But ID recently announced that…