Using WordPress Members Plugin in Custom Page Template

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.

Posted in

The Mighty Mo! Design Co.

RSS From Toby’s Blog

  • Where uncertainty exists, don’t order specific.
    4 Idiot Case Studies with 2 simple age-old business lessons.
  • “Now THAT was a good meeting!”
    A single effective meeting can change the course of history for a company. Imagine if you could lead effective meetings EVERY DAY! You can, but it takes curiosity & practice. This article is a good place to start your journey to a more effective you.
  • Never Respond to RFPs & Custom Proposal Requests
    Y'all who work at normal 9-5 jobs don't need to deal with the B.S. that is an RFP process (or rather you get paid to deal with it). But us freelancers gotta deal with a whole big bag of schtuff when it comes to custom proposals. Here's my quick-and-dirty RFP filtering process that I use […]

More posts from themightymo.com

The Mighty Moo! WordPress Theme Release – version 1.2

By | March 23, 2009

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…

The Mighty Moo! WordPress Theme Update

By | March 22, 2009

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…

Testing Out Intense Debate

By | March 11, 2009

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…

RSS From Toby’s Blog

  • Where uncertainty exists, don’t order specific.
    4 Idiot Case Studies with 2 simple age-old business lessons.
  • “Now THAT was a good meeting!”
    A single effective meeting can change the course of history for a company. Imagine if you could lead effective meetings EVERY DAY! You can, but it takes curiosity & practice. This article is a good place to start your journey to a more effective you.
  • Never Respond to RFPs & Custom Proposal Requests
    Y'all who work at normal 9-5 jobs don't need to deal with the B.S. that is an RFP process (or rather you get paid to deal with it). But us freelancers gotta deal with a whole big bag of schtuff when it comes to custom proposals. Here's my quick-and-dirty RFP filtering process that I use […]