Support » Plugin: Members » Need help setting up this plugin for specific case

  • Hi there.

    I have a private site that I’ve been building for a while, and a new need has come up: I want to give logins to a new set of users, but I want to limit their access to only a few pages and a few posts.

    How should I best set things up using this Members plugin?

    One option could be to create new role (e.g. “Limited Access”) and go into all pages and posts and explicitly select what roles would have access — but I have hundreds of posts already created and this would take a very long time to do.

    I’m sure there are better options but I can’t figure it out. Any help would be appreciated – I’m a bit of an amateur at this!


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Justin Tadlock


    WordPress God

    You’ll need to do a little custom coding for a scenario like that. Here’s a tutorial I wrote that might give you a place to start from:

    Justin – thanks so much for your quick reply, and thanks more generally for this great plugin.

    I read through your tutorial and it makes sense to me – yet I’m still not sure what I should do for my particular situation which isn’t fully reflected – I’m having trouble making the leap myself…

    I currently have about 100 users browsing my private site of dozens pages and hundred of posts. This content relies on multiple post templates.

    I’d like a new role, e.g. “limited_user”, to be unable to view any of that content, only able to view particular new pages and particular new posts.

    Possible to spell out (at a high-level) what you’d do in this situation? I’m positive I can figure out the code myself but need the overall logic broken down for me.

    Any further help would be greatly appreciated.

    Justin – using the filter method at the bottom of your tutorial I figured it out. I was hoping that I could have specified permitted pages and posts in the WP Admin (as opposed to in the functions file) but at least I have a solution.

    Plugin Author Justin Tadlock


    WordPress God

    You could probably couple that with a custom field or category/tag. But, if you go that route, it wouldn’t be much different than using the Content Permissions feature (unless you already have something like a cat/tag assigned to the posts). Essentially, it comes down to “designating” posts in some way as different from other posts. The code part isn’t hard from there.

    Anyway, I’m glad you got something up and running.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Need help setting up this plugin for specific case’ is closed to new replies.