This plugin will very easily let you restrict content on your WordPress site to registered users. It permits you to restrict entire posts / pages or individual sections of content within a post or page.

Features

  • Restrict entire posts / pages.
  • Restrict sections of content.
  • Unlimited number of restricted areas.
  • Works with all Custom Post Types
  • Five restriction levels – uses WordPress’s regular user levels.
  • Hide content displayed in WordPress feeds.

Usage

First upload to wp-content/plugins and click activate from the WordPress plugins menu.

To restrict an entire post or page, simply select the user level you’d like to restrict the post or page to from the drop down menu added just below the post/page editor.

To restrict just a section of content within a post or page, you may use shortcodes like this:

[restrict userlevel="editor"] . . . your restricted content goes here . . . [/restrict]

Accepted userlevel values are:

  • admin
  • editor
  • author
  • subscriber
  • contributor

There is also a short code that can be used for showing content to users that are not logged in:

[not_logged_in]This is only shown to non-logged-in users[/not_logged_in]

A premium version of this plugin can be found here.

Download for Free

Download
  1. Mike

    Hi, just installed your plugin on a test site of ours and I am wondering if there is a way to restrict menus from a non member. What I want to do is display a set of menus for anyone, then have a members section so they can log in. Once they do, I’d like to show them the additional menus they can’t see if not logged in.

    Any way to do this with your plugin?

    Thanks.

    • Pippin

      No but you can use the plugin called Nav Menu Roles to do that.

  2. Javier Ruiz

    Hi, is there a way to restrict a shortcode. I have this [gallery ids="492,494,495,493"], but when I put the restrict shortcode like this [restrict userlevel="guests"][gallery ids="492,494,495,493"][/restrict] doesn’t work. And other thing, if I restrict something in the post, it doesn’t restrict it in the “feed” page of all posts.

    • Pippin

      No, sorry. The Pro version would allow you to do that, however.

  3. dejan

    Great plugin. Simple and useful!

  4. Fiona

    Hi, It installed perfectly on the menu tab page I wanted. However, I do not understand once I have selected subscriber for this page, how do people sign up so they can see further into the content?
    Apologies…

    • Pippin

      Hi Fiona,

      To register for your site, users can go to yoursite.com/wp-register.php

  5. waheed

    Hi,

    Is there a way to hide the post title until the user has logged in:? At the moment, The post title is displayed, but the content is not visible, would there be a way to remove the post title so it remains invisible until someone has logged in?

    Many Thanks

    • Pippin

      No, sorry, that’s not supported.

  6. remco

    Hi. Is there a way this plugin could work with the Visual Composer plugin. It seems it does not work for some reason. Thanks

    • Pippin

      No, sorry, the two plugins are not compatible.

  7. Melodye

    Hi Pippin,

    Is there a way to add users to the subscriber group automatically from the Getresponse email list?

    I would like for them to added automatically after subscribing for the free gift and then go to the page to access it.

    Thanks.

    • Pippin

      No, sorry.

  8. Graeme

    Hi, is it possible to restrict entire categories and all posts under them with this plugin?

    Many thanks
    Graeme

  9. Ibrahim Vatih

    How to upgrade from free to pro?

    Just purchase the pro

    • Pippin

      Yep!

  10. jesse

    is there a way to restrict media to non paid members? I only want the people who subscribe and pay on my site to see any pictures or media. is this possible?

    • Pippin

      Not at this time.

  11. Olivia

    Hi There,

    Attempting to make a page accessible to only the Administrator. I’ve set the user level as such and updated the page however it’s still public. I’ve checked from another browser where I’m not logged in.
    Any ideas?

    • Pippin

      Could you show me a screenshot of the edit screen for the page?

  12. Grant

    I am a super novice at this stuff… know just enough to be dangerous. I have activated your plugin but feel I am having trouble getting to work on my site (still in development).

    I want to restrict an area of my website for our members only. I will have 1 username and password for everyone who is a member. I followed your instructions of how to install it… chose a subscriber level, etc. When I go to the page I am trying to restrict, I don’t see that anything changed. I don’t see my message or a place to enter a username and pass word.

    Help?
    Thanks – Grant

    • Pippin

      This plugin won’t show a login form for users to log in. It simply restricts the content.

      You will need to send your users to /wp-login.php to log in or place a login form from another plugin somewhere on the page.

  13. Olivia

    What would be the best way to show you a screen shot of the edit page? Following up on my post for August 26

    • Pippin

      Upload it to imgur.com and then share the link here.

  14. Adrian Harper

    Hi
    I was looking for a plugin that can hide content on a WP post but the html code can still be read by google bots. Does this plugin allow this?
    Thanks Adrian

    • Pippin

      No, the content will be hidden from google bots.

  15. John

    Don’t get this plugin. I have set a post to be viewed by subscribers… But when I test it and subscribe I still don’t have access to the post. Am I missing something here?

    • Pippin

      What plugin are you using to subscribe and create the user accounts?

    • John

      im using the plugin for subscription that is implemented in the rigel theme

    • John

      its normal wordpress subscribe

    • Pippin

      Can you show me a URL to the page that is not working?

  16. Joel Garcia

    Hello, in your plugin you can restrict certain scripts or pages to different users?

    example:
    The Administrator sees: Hello 1
    The student can not see Hello 1

    Thank’s

    • Pippin

      No, that’s not supported.

  17. Norm

    Does this plug in integrate with mailchimp?

  18. David Bonynge

    We use the free version of your plugin to restrict the visibility of certain content on our site. As an example, we have a local coupon page (http://croton.suburbanguides.com/local-coupons/) that shows Coupons if someone is logged in as a Subscriber (or higher). If the individual is not logged in, the get the message: “In order to view this material, you need to be a Subscriber. Please register or Log-in.” If they register or log-in, the Coupon info become visible.

    We also have a weekly email that goes out via MailChimp. However, for this we use a MailChimp landing page. This is a separate MailChimp sign up process similar to the one found here: http://suburbanguides.us11.list-manage.com/subscribe?u=14a919f0f62ebc0c615268d4b&id=627f34320e.

    The problem is that:
    • If they register on our site, they are not automatically signed up for our email.
    • If they register for our Weekly email, they are not automatically registered on our site.

    Is there a method to combine these two registration needs so that subscribers only have to subscribe one time to get the benefits of both?

  19. mbaluran

    Hello,

    How can I restrict a section of my content to multiple user roles? Does this plugin have that kind of feature?

    Thanks

    • Pippin

      No, that’s not supported.

  20. Leonard Challis

    Hi, thanks for the great plugin.

    I was just wondered if what I’m encountering here is a bug. On the Edit Media page I’m editing a video’s details. But when I set the User Level and then click Update the settings aren’t saved, and the page is still public.

    There are no errors in the PHP error log.

    Any ideas?

    • Pippin

      That is a bug. The plugin doesn’t currently support restricting media pages.

  21. Atithya Amresh

    Your plugin keeps giving me this error:

    Notice: Undefined index: rcMetaNonce in /home/content/n3pnexwpnas02_data02/30/3153330/html/wp-content/plugins/restrict-content/includes/metabox.php on line 85

    Any help here?

    • Pippin

      Sorry for not seeing your comment earlier! I had some issues with Akismet automatically trashing a bunch of comments.

      That error has been fixed.

  22. Alex Monetto

    Hi,

    Is there any kind of configuration to do where the restrict mode is enabled by default?

    For example:

    I’m going to create a new post and the form will be set up to be restrict, without user check this option.

    Thanks

    • Pippin

      No there is not, sorry.

  23. leo sampieri

    Hi!; is this plugin going to work with Divi Builder?
    I guess the only way would be to insert the shortcodes in the code modules that Divi has, but the browser wouldnt read the page as a flow, but as blocks…right?
    Thanks !

    • Pippin

      I don’t believe it will at this time but I have not personally tested it.

  24. Reiner

    How do I restrict content by custom roles? Does the pro support that?

    • Pippin

      Sorry for not seeing your comment earlier! I had some issues with Akismet automatically trashing a bunch of comments.

      We don’t currently support custom roles in the free or pro versions, but it’s on our todo list for the pro version.

  25. Mike Hren

    Is there a way to create separate groups within your plugin? I have a membership community in which some people are general members and some people are in specific smaller groups within the community. I’d like those groups to only see their groups content.

    • Mike Hren

      Really? I’ve been looking at the screenshots on your pro site and I’m not seeing how to handle groups.

      Can you please be more specific?

      Thanks!

    • Pippin Williamson

      Each group would be a separate subscription level. Content can then be restricted to individual subscription levels, giving each group content only they can access.

  26. rachid

    Hi:
    sorry for my bad english , This plugin does what you say exactelly , it hide menu from restricted users , but the posts and pages content still visible by enter urls adress in navigator , i can do that by if (is_user_logged_in) , so for me not usefull

  27. Heidi

    I have Woocommerce installed. Will the Pro version be in conflict?

    • Pippin

      That will work just fine!

  28. anand

    Sir i have used the plugin
    there is a shortcode to protect content[not_logged_in]Login to view[/not_logged_in]
    after the visitor logged the pdf or video should be allowed to viewed how to achieve

  29. Gary Collins

    Is it possible to restrict content based on username?

    • Pippin

      Not at this time.

Comments are closed.