WordPress Access Control

Download Link: Download from

This plugin has received nearly 120,000 downloads between it’s two versions (I renamed it and has to create a second plugin).


Now with the ability to create member only widgets and menus! (3.1)

WordPress Access Control is a plugin designed to integrate into membership sites where certain pages, posts and custom post types should only be available to members of the site. The plugin offers fine tuned features for this purpose, including the ability to set site wide defaults and override these on a per-page basis.

You can easily set a page to be accessible only by members of your site, or even a specific role. You can also set pages to be accessible only to non-members of  your site, useful for registration pages.

By default, you can add Members only pages to your menus, and users who cannot  access them (non-members) won’t be able to see them. This applys to the children of a menu item as well, making it easy to build a separate menu for your  members.

Additionally, you have the ability to customize search pages, completely hiding posts/pages from search results if a user can’t access them, showing search  results without an excerpt, or showing search results normally.

New In 3.1

  • You can add member only versions of each menu on your site (Only when using WordPress menus)
  • You can make certain widgets only visible to members or non-members.

Translators: The POT file is included with the plugin and all text output uses gettext functions. Alternatively, you may download the POT file from here.

Documentation: The plugin includes comprehensive documentation file accessible via the plugin directory

Planned Features

  • Support for making posts members only
  • Support for post excerpts, but the full view will only be available to members
  • Completely hiding members only posts unless logged in
  • Hiding of member only posts from the feed and accessing them using feed keys
  • Hiding all pages
  • Hiding all blog posts
  • Members only blog
  • Support for custom post types (Making any custom post type members only)
  • Alternative menus for members
  • The opposite of all features (Ex: Menu items only available if you’re not logged in), not sure if this would be useful to anyone or not. Maybe for a registration page


Installation is very simple:

  1. Upload wordpress-access-control/ to your websites plugins folder (/wp-content/plugins/ by default)
  2. Login to your WordPress admin
  3. Navigate to Plugins
  4. Activate WordPress Access Control

You can change settings by going to Settings > Members Only Settings


  • 3.1.2 – December 7, 2011
    • Fixed a PHP error when there are no nav menus
  • 3.1.1 – December 7, 2011
    • Fixed a bug that might cause memory issues
  • 3.1 – December 7, 2011
    • Custom Post Type section is no longer displayed on the options page if there are no custom post types
    • Members Only Blog now properly restricts the entire site
    • Admins now have the ability to override permissions to prevent lower level users from denying admins access to posts
    • Admins may now create menu widgets that are only visible to members or non-members from the Widgets screen
    • Admins may now create WordPress nav menus that are only visible to members
    • Updated the documentation
    • Added new screenshots
  • 3.0.5 – June 6, 2011
    • Fixed the PHP issue properly this time
  • 3.0.4 – June 6, 2011
    • Fixed a PHP issue if a second argument wasn’t supplied to several functions
  • 3.0.3 – June 5, 2011
    • Added an option to apply members settings to all children of a page
    • Fixed a bug where the page navigation for posts/archives was broken
    • Fixed a bug where themes that used the_content on archive/search pages could show all the contents of a post instead of the no excerpt message
  • 3.0.2 – June 2, 2011
    • Added do_shortcode commands to allow nested shortcodes in the and shortcodes
  • 3.0.1 – June 1, 2011
    • Fixed an issue where a members only blog with no redirect link specified would cause an infinite loop
  • 3.0 – May 26, 2011
    • Added an admin options page
    • Added an option to allow pages to show up in menus even if a user cannot access them
    • Added support to make an entire blog members only
    • Added options to set the defaults of all options for pages and posts
    • Added support for posts
    • Added support for searching/archives
    • Added better support for custom post types
    • Added a redirect_to argument even when using custom redirect links
    • Added and shortcodes
  • 2.01
    • SVN didn’t package templates folder for some reason
  • 2.0
    • Added the ability to mark pages as non-members only
    • Added the ability to restrict pages to specific roles
    • Added the ability to set the redirect URL for users with incorrect permissions
  • 1.6.4
    • Fixed a problem with certain themes that use wp_list_pages as my plugin didn’t affect that function. It does now, as we hook into get_pages. Also updated some of the code to better reflect WordPress coding standards
  • 1.6.3
    • Fixed a problem in pre WordPress 3 instances where a PHP error is generated due to lack of the Walker_Nav_Menu class
  • 1.6.2
    • Fixed (X)HTML validation errors caused by an empty ul which could occur if all items in a submenu were members only but the parent element was not.
  • 1.6
    • Fixed a bug where third level menu items with members only attributes would break the HTML/menu
  • 1.5
    • Fixed an error where submenus would still be generated if the parent was marked as members only. This has been fixed.
  • 1.4
    • Added support for PHP4
  • 1.3
    • Added support for wp_page_menu
  • 1.2
    • Added a filter which catches a fallback to wp_page_menu and removes our walker class from the arguments list
  • 1.1
    • Added a filter which removed the need to change the wp_nav_menu commands
  • 1.0
    • Initial Version

134 thoughts on “WordPress Access Control”

  1. Hi,

    I am testing WPAC to see if it will work for my needs. It is controlling the posts and pages as advertised. However, can I also have access control on images and other media posted on the page?

    I have a WP 4.6 site, with custom theme. The whole site is public, but I am trying to set up a member-only page for a conference we are hosting. The member-only page is controlled by WPAC, but I also link to documents (PDF, DOC) that I want to place online. Ideally these would be in the Media /upload folder and only visible to authorised users. However, WPAC does not seem to be integrated into the WP Media Library.

    Any suggestions? Is WPAC the plugin for me?

  2. Hey Brandon, I love this PlugIn! Thank you for making it free. It’s so useful! However, I translated it to German. Where do I have to place that language files? Or how to name it to work properly? I named it “wordpress-access-control-de_DE.po” (got a .mo file) and tried your PlugIns language directory as well as the WP default one. Neither works… Your Reply to this comment might be useful for all who love using your PlugIn 🙂
    Thank you very much! Best regards from GER|DUS

  3. Very great post. I simply stumbled upon your blog and
    wanted to say that I’ve really enjoyed browsing your weblog posts.

    After all I’ll be subscribing to your rss feed and I hope you write again very soon!

  4. Other than receiving calls, you can also connect your Bluetooth to a computer and listen to
    your favorite music. Under this plan, customers have to undergo the pre-determined contract period which lasts
    generally from 12 to 18 months. The store also sells various
    kinds of things, Besides above products.

  5. Great plugin – until I installed WPML to make my site multi-lingual. What’s happening is that non-logged in versions of the menus are being displayed even though logged in. Others have already pointed this out on the web but I don’t see any replies.

    Need a quick answer here either “I’ll fix it” or “dump me”. Which is it to be?

  6. Hello, Nice plugin, Actually i develop a new site, but it breaks my Hebor Mega menu elements. I use Kwoon theme. with grid menus.

  7. Hi Brandon,

    Should the archive options work for Custom Post Types? I have these options checked:
    Show restricted posts in search results?
    Show restricted post excerpts in search results?
    Show restricted pages in search results?
    Show restricted page excerpts in search results?

    but my excerpts do not appear to non-logged-in users. I’m using a custom taxonomy.php template to show these posts to logged in users. Please let me know if you have any ideas on where I could be going wrong.

    Thank you,

  8. Hi, I’m using your WordPress Access Control plugin. I’m struggling with the automatic reset for the user password.
    When i use the code [upme_reset_password] on the resetpage, the email that is send doesn’t contain a link.
    Can you help me out?

  9. Hello Brandon,
    I too love your plugin. Thank you for its simplicity and ease of use. I am wondering if there is a setting available for menu functionality. Can you set a menu to a specific login role? Or, can any user that is logged in see the secondary menu?

  10. I am trying to have a members only site that when members are logged out OR try to access a page that is restricted they are redirected to a “public” page NOT the wp-login.php page. I tried putting “/public” in the Members Blog Redirect field but the redirect fails. Why do neither of the redirect fields in the settings page work?

  11. Hey,
    Your plugin works really well. one thing I was wondering is there anyway to get pagination to only go to post which the user has access? at the moment it take them to a login page.?

    any ideas please let me know.


  12. Good morning Brandon… I have just installed your plugin and need your help please. My goal is to have 2 menus available… one for non-logged users and the other for logged in users… I have the menus built… looking for a way to implement. I was referred to you by support staff at … I am using one of their themes to build site listed above… Also, I have installed a plugin called WP-Members that handles the login procedures… which works great except; if you are not logged in and go to the Members page [shortcode] you get a login form to login or register (that’s cool) This page is to handle info on the sensitive/private nature… but if you scroll down underneath the forms is that sensitive material (which I added in,) but I do not want this visible unless you are logged in… if you have time visit site and click the Members link on navbar… and scroll down and see the link for what should be viewed only by logged in users. Confused?? Me too. I am trying to figure this out… two menus would solve things… can you help? I am looking forward to your reply. Thanks so much. Bruce.

  13. Hello:

    I am not sure if this is the right plugin for what I need. So, let me explain.

    I would like the ability to manage each members, in this case, each buyers page. For example, when I sell to hospitals they have a certain price, but when I sell to individuals thats a different price. I want the ability to give them ( buyer) access to the products page with prices but only after becoming a member will they see the price. General public will only see product images, no prices.


  14. I love love this plugin! However I just discovered that while it is running, I can’t register new classes via functions.php. I need to register a new class to write menu walkers, etc. Is there any known quick fix for this?

    1. More details on this … I’m using WP 3.4.1 with a blank theme. WordPress Access Control is the only active plugin. When WordPress Access Control is active, I can’t register a new walker class. When I deactivate WordPress Access Control, the new walker class works.

      I started out thinking I had some bad syntax in my walker code, so checked and re-checked for an hour or more before finally suspecting faulty install or plugins. Going through other posts on this site, I see mention of this plugin working in conjunction with nav walkers, so I’m hoping it’s something simple that’s going wrong. Any help or ideas much appreciated. Thanks

  15. I am experiencing a bug with repeater fields. I’m on the latest version of ACF (3.2.7). If the repeater field includes a WYSIWYG, and I add a second row and try to attach an image to the wysiwyg in the new row, it will attach to the first row instead. I have to update after adding the new row to make this work.

    this seems to be a serious issue. Will this be fixed any time soon? (Otherwise, a fabulous plugin – thanks)


  16. Hi, firstly I want to say I love your pluging, it is perfect for my needs. However it seems to have beef with Gravity Forms and when activated prevents me from adding fields to a form basically rendering it useless. It also generates this error permanently – Notice: load_plugin_textdomain was called with an argument that is deprecated since version 2.7 with no alternative available. in :\xampp\htdocs\mydoctorschemist\wordpress\wp-includes\functions.php on line 3553.

    I’m hoping this is something easy to fix and has been caused by my using the newest release of WordPress (3.3.2). Everything else is running latest versions.

    I would really love to get this working and would appreciate your help fixing this issue.

    Oh the site is currently running in XAMPP testing environment locally so there’s nothing online to see currently.

    Many thanks,


  17. Hi,
    The plugin worked perfectly for a while but now it stopped working…
    It doesn’t redirect me although I defined it in post’s edit.

  18. Hi..

    this plugin is sooo awesome. except that I can’t define what roles are considered members. for my site, I want only people who have purchased something to be considered members. I can manually assign roles but now every role (even non-role) are considered members and as long as you register you can see the exclusive contents.

    Please help!!! Thank you soooooooo much!!!!

  19. I’m trying out your plugin for a site I’m building.

    I seem to have got the hang of using it. I’ve also installed Theme My Login, because I want to customise the login page. The plugin creates a page, which seems to tie in with your plugin.

    However, the login page that the non-logged in users get redirected to is

    What do you suggest for getting the aesthetics of the login page right?

  20. Hi

    Your plug-in is great and joined with User Role Editor they are very wonderful 😀

    I have a problem only with “recent post”. Can I filter the content in this list ?

    Thk, Zeta

  21. This is a great solution for our personal website. Unfortunately, it does not work with our YOOTheme template Inspire Is there somewhere I can edit the plugin to point to the right CSS?

    We want to restrict our family blog from view and this solution works great, but looks horrible with the theme.


  22. I installed this on a WP site running 3.21. (shown as compatible) but immediately after installing it I get some codes errors at the top of all the WP ACMD/Admin pages as well as on the front-end of the site. The two lines of error code are…

    Warning: Missing argument 2 for WordPressAccessControl::posts_where_paged() in /home/content/21/5281821/html/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 525

    Warning: Missing argument 2 for WordPressAccessControl::posts_join_paged() in /home/content/21/5281821/html/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 512

    LINE 512 is: function posts_join_paged( $join, $query )

    LINE 525 is: function posts_where_paged( $where, $query )

    …can you please let me know how to fix this? Thanks!

  23. I am working on another site. And decided to use this plugin. Everything seemed fine until i noticed it broke the theme. What i mean is it messed up the top menu style on the Aviance Theme from Hope update will fix this.

  24. I love this plugin, thank you!

    I hope you will upgrade the plugin so that member only posts are not shown at all in feeds. That would be the ultimate thing for my site! 🙂

  25. Hi Brandon,

    Great work on this plugin – it works well right out of the box.

    I have a set of posts that are only accessable by a subset of roles, defined by selecting those roles under ‘Only Accessible By’. I am now using query_posts() to retrieve a list that includes some of these restricted posts. I need a way to determine if the current user has access to these restricted posts, but I cannot find where to retrieve the roles for an individual post. Can you help me out?


    1. Also, there is a quick bug with the new version (3.2.1) – posts that should be available publically to non-logged in users, by leaving the ‘Only accessable by Members’ and ‘Only accessable by non-members’ checkmarks unchecked, will display properly in v.3.0.5 but will requre the user to log in in v.3.2.1. I have had to restore back to this previous version for now.

  26. I have translated your excellent plugin to es_ES and I wonder if I can send you the files and maybe you can include them in your next release.

    Thank you for your great plugin

  27. I installed your great plugin into a new server, where I have moved my dev site where it was working fine.

    Now when I want to add a page to a custom menu the round icon keeps rolling and nothing happens, I deactivated your plugin and it works again.

    Any thoughts?


  28. This is a great plugin. However, the problem I am having is that I have three audiences each with different posts. I would like to make it where in pages that lists posts, the posts are not even listed if one doesn’t have access to them (rather than having the post title and the ‘you must be authenticated’ message). Can you consider adding this as an option?

  29. I’m using theme-my-login to customize the login page. When I try to access a page that is for members only your plugin would direct me to the default login page instead of the “themed” page, even though the default page to redirect is correst on the settings section.

    Could you please advice.

  30. Hi,

    I was wondering if it is possible to make a page vieweble by members only but still make the page show on as a top level menu option.

    I want people to know the page is there, but force them to register to be able to view it.

    Is that possible?

    Thanks in advance for your help and my apologies if this is not the right place to send this question to.



  31. Pingback: Website Design
  32. Your plugin seems to be just what I need to control access to my site. I want all non-members to land on a page within the site with details on how to subscribe and gain full access to the site. So, the site is set to members-only by default, but one “subscribe” page is set to non-members only. But non-members do not land on the intended page. They just get a page load error. Any suggestions?

  33. Hi, is it possible to hide pages and menu items from all other than admin users ? I mean within the normal page, not the wp-admin section …

    Help very appreciated.

  34. I have created a members only page on my site, but want the page to appear on the menu, even for non members. I have the box ticked to show pages to everyone, but it is still not there. Any idea why?


  35. Hi Brandon,

    Silly question perhaps but how does one become a member? I want this site to be an internal forum for 6-10 members total. I want those people to be able to register or admin to add them. People can also request membership for this community but I’m not sure if it’s just a simple registration process or if there is something else on the back end. Can someone at author level add members or accept members?

    1. I have the same questions. I’m sure it will be obvious once I understand it, but the term “member” is not defined. I know it’s not “subscriber” because I’ve been testing the usual roles.

      Please define “member.”

      I love this plugin. It’s everything I need and want.
      Thanks so much for a *great* tool.

  36. Hi Brandon! This might be an easy answer, but I am wondering how I can have a login/register in my header or anywhere? I did not see any instructions on how to get that on my website, but really need it, for obvious reasons. I did not see anything in my widgets for that purpose, either.

    Thank you!

  37. Hi.

    Just started to use the plug-in, and it seems to work fine. But I see one issue, when using [member]–[/member] in a text, the text between the [member]–[/member] gets a line shift. Is there anywhere I can change that? Does anyone else have the same problem? The template I’m using is Atahualpa 3.5.3.

    Thank you.

  38. I am using your plugin (3.1.2) with the Atahualpa theme (3.7.3), but it does not give me the ability to show a different menu for member: the nav menu options are still the default ones, and this is really the only functionality from this plugin that I really need. Any ideas?

  39. Hi, your plugin breaks the menu in the Dotted theme by mnkystudio, in fact I have pinpointed the problem to this:

    Access Control disabled:


    Access Control enabled:


    so Access Control removes the additional class from the menu items which in turn breaks the animations provided by the theme.

    Is it possible to update the plugin so that the theme would work properly?

    BTW. the plugin is great, and very usefull 🙂

    1. The links got collapsed in the former post, pasing them again with brackets changed:

      Access Control disabled:

      {li id=”menu-item-61″ class=”menu-item menu-item-type-post_type menu-item-object-page menu-item-61″}{a href=”” id=”61″}Datacenter{/a}

      Access Control enabled:

      {li id=”menu-item-61″ class=”menu-item menu-item-type-post_type menu-item-object-page”}{a href=””}Datacenter{/a}

  40. Hello Brandon,
    Your plugin does not seem to be working correctly with my theme. Once activated it removes all menu items except for the first item. I tried temporarily fixing this by selecting “Always show all menu items even if the user cannot access them” but it still does this regardless. Please help. I am temporarily disabling your plugin until I can get this resolved. If you need me to enable it to take a look at what’s wrong please email me. Hope to hear from you soon.

  41. Hi Brandon,

    I installed your Members Only plugin, really handy! I have a question about members being able to access the dashboard. After installing I logged in on another computer to see if it worked. Now the website was indeed password protected, but once I was in, I could also enter the dashboard and work ‘behind the scenes’. Now I don’t want my members to be able to do that. What to do?

    many thanks,


  42. Hi Brandon,

    I updated my WordPress today and I get a redirect loop on the site now if your plugin is activated. How can I fix this?
    It’s been working great up to now!


  43. Hi Brandon,
    Since I installed the plugin, the members-subscribers stopped receiving email notifications about new posts. I’m using Feedburner. Any ideas?

  44. This plugin seem rather insufficient. I’m using it in WP 3.3 and it only hides the pages. You’re still able to visit for example the Members page by adding /members to the address bar for the domain. The entire site is accessible this way, even if you choose to apply the block to all child-pages!

  45. I have a feature request or may be there is a workaround already.
    When I create a page and label it as member-only, I would like to appear in the page at the front end that the page is protected and members-only. By showing a lock-icon or whatever. Is there a template tag available or a function that I can use to get the members-only status of a page out of the database and show it in the frontend?

  46. Thanks for this plugin, it will come in really handy once I get it working the way I need it.

    I have set in the options for menus to show up to all users whether they are members or not, and then I have restricted access under “shop online” a page called “wholesalers.” When I log out and look for the page to see what happens, it is not on the drop down menu at all. Can you tell me why this might be?


  47. I installed you plugin and got this warning message across the top of my dashboard

    Warning: Invalid argument supplied for foreach() in /home/content/s/p/q/***********/html/****/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 891

    What (if anything) should I do?

    1. I believe this issue is caused because your theme has no nav menus. I’ve patched my plugin and uploaded it to the repository, so it should be online soon. Until then, I’ve emailed you 3.1.2 so you can update immediately.

  48. Also I just increased the limit to 96M FYI but am still experiencing this problem. Error reads as such:

    Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 27343 bytes) in /[snip]/html/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 890

    Thank you. 🙂

    Best Regards,


    1. I believe this issue is caused because your theme has two menus which was causing an infinite loop. I’ve patched my plugin and uploaded it to the repository, so it should be online soon. Until then, I’ve emailed you 3.1.1 so you can update immediately.

  49. Hi I just upgraded to the most recent version of this great plugin.

    Unfortunately my memory suddenly was exceeded and I had to deactivate it. I have increased my memory to 64M using the instructions on, but to no avail!

    I just wanted to let you know that I encountered this problem for the first time on my website when upgrading. I don’t know what the solution is yet.

    Thanks again, I hope to be up and running with this plugin soon! 🙂

  50. Hi,

    I am using the theme Aggregate from Elegantthemes. After installing the plugin I tried to make a page member only and checked in the menu if the page is hided after logging out. But the page stays visible for non-members.

    Maybe I am missing something or do you have a solution?


  51. Hi,

    Access control works pretty much as expected, however, I’m experiencing a problem. I have several pages that I don’t want public. I’ve put those pages in a menu and display that menu as a menu widget in the 2010 theme. The pages don’t display on the menu when I’m logged off; which is what I want. But this leaves the widget empty, which is also ok, however the widget name sill displays and it takes up space in the sidebar. In this case I would like the widget not to display at all when it is empty. Actually, ideally, I would like to control access visibility of the widget the same as for the pages. However, if you can give some pointers as to how I can hide the widget when it’s empty that would help.

  52. Hi,

    It does not work for me.

    Using WordPress 3.2.1
    Plugin Version 3.0.5
    Theme Nest

    I’ve choosed “Make Blog Members Only” but it’s still public.

  53. Question. If I click on non-members, what does it restrict?
    Does this setting keep it from Search Engines?
    Is it like a https:// request

  54. I am using with ST Insert post plugin. When a post is submitted from the front end the default status of Members Only is not applied as it would be if the post is added from the admin area. I have tried setting the submission from the front to “publish” and for “review” but neither apply the defaults as they do from the back, I am guessing it has something to do with it not being an auto-save? Any guidance you could provide or how I can modify it to work would be appreciated! Excellent plugin!

  55. Hi Brandon!

    Thanks for a fabulous plugin! Just wondering, is there a quick-and-dirty way for me to hook into your plugin and make a custom post type automatically private? I know you can turn on the controls for a custom post type, but i want this custom post type to be automatically be members-only, or the controls to be automatically checked to be members-only at least. My blog writers won’t necessarily know to check that box every time.

  56. Hi.
    Thanks for your plugin, works very well for me.
    But I got one question/problem:
    I checked “Only accessible by members?” and “Administrator” as role.
    None-Members can not see the page in the menu, everything is ok.
    But a logged in subscriber can see the menuitem, if he follows the link he got to the login-page. So I got two problems here:
    1. Why can the subscriber see the menuitem wich is only accessible for adminitrators?
    2. Why doesen’t work the redirect-link from the option-page, it only works if i insert the redirect-url direktly in the page (field “Redirect To (Leave empty for login page):”?
    Thanks for your work and your help…

  57. Brandon,

    Looks like exactly what I’m looking for but I’m not quite able to fully implement it. I’m using buddypress and do not want non-members to see the Activity, Members, Groups and Forums tabs. Adding the shorttags to the index pages for these features is not working for me. Any suggestions on how to customize your plug-in for my application?

    ……. Rick

  58. Hello…

    I am having the same issues as “Chris Wood on August 13, 2011 at 12:06 pm said:
    When activating the plug-in, it seems to tweak my theme’s menu. I’m using the Karma theme available on Theme Forest.

    Specifically, the menu seems to lose its formatting (color, size) and also the sub-text below the menu name disappears.”

    IS this pluging not compatible with certain themes? Is there a fix for this or work around?

    One another question, having the members only menus, are they secure so they cannot be accessed?


  59. Hi Brandon!
    First of all: thank you to create such a cool using pluging.
    I’m trying to translate it into “french” but it seems to not work.
    1- I’m using PoEdit
    2- I put “wordpress-access-control.po” both in “wp-conten/langages/” and “wp-content/plugins/wordpress-access-control/langages/”
    ..But nothing changed!

    Could you, please, help me? Many Thanks.

  60. Hi Brandon,
    first of all thanks for you plugin! I’ve tried other plugins for making private posts/pages, but everyone of them had major problems for me. In the end I chose yours, and I’m quite satisfied.

    Only one question. Do you think is there a way to make that comments to “private” posts don’t show up in RSS feeds? At the moment I disabled RSS feeds completely.

    Thank you in advance for an answer,


  61. When activating the plug-in, it seems to tweak my theme’s menu. I’m using the Karma theme available on Theme Forest.

    Specifically, the menu seems to lose its formatting (color, size) and also the sub-text below the menu name disappears.

    Also, if I want to have a separate group of members to assign pages to, do I need to have another plug-in that allows me to add a new role?

  62. I have installed WordPress Access Control plugin (3.0.5) and using it with WordPress 3.1.4. with theme: 2010 Weaver 1.5.4 by Bruce Wampler.
    The issue is that Access Control Plugin does not affect left menu or horizontal top menu.
    When categories have only restricted content they are still shown in the left widget menu and in the horizontal top menu. Is there a way to restrict this, so only public categories and content is shown to normal web site visitors?

  63. I’m VERY new to WordPress, so maybe this is a stupid question, but how do new members sign up to get access to my page.

    I am building a website for our local union with iWeb, and I’m trying to use WordPress for a few restricted pages (i.e. blog) that can only be accessed by members. I am just starting, but I have my blog made, and the plugin installed, but when I log out and try to access the blog, it gives me the log in page, but no way to sign up.

    Any help or advice would be appreciated.

  64. This is the error I got when I tried to activate the plugin.

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected $end in /home/househol/public_html/wordpress/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 211

  65. I’ve been using your plugin. So far, it’s been exactly what I needed. Thank you!

    How soon are you planning to introduce private feeds?

  66. Hi Brandon,
    I found your plugin recently and it solved many needs I have for a website with members-only pages. Thank you for all the hours you’ve already invested in developing and improving it! Reading through the blog comments, I see several other people who need “another” thing, which is control over the landing page for viewers with different roles. It would be great, for example, if on logging in a Subscriber could be redirected to a page we specify in the members-only pages. It would also be great to control by role type when the link “Admin” show up in the Meta widget – not sure if that’s part of your magic or not.

  67. Correct me if I’m wrong – this only affects menus generated by a wordpress template function. It does not affect custom menus built using the menu editor (Dashboard > Appearance > Menu).

    If this is correct, consider this a feature request with no expectations (I am an open source developer myself and I don’t like people demanding features for a free product).

    Thanks for all you have done.

  68. Hi Brandon,

    I like what I see, however, I’m a bit of a noob and I’m thinking that what I want to do, is not the intent of this plug-in. Basically, our site is not a blog, rather an online catalog for our furniture stores. We are looking to post a series of pages that will have our confidential wholesale prices and was looking to give the customers access by just giving them a password (already published on our catalog). What I find though is that users are sent to a “WordPress” login page that requires a username as well as password. Our customers will be missing a piece of the puzzle and not be able to get in – is there a way to force the username, or do I need to find a totally different plug-in?

  69. Hi,

    I’m struggling with this plugin at present and it does not appear to be compatible with the latest version of buddypress, either that or theres a bug.

    I’m attempting to make my pages apart from the home landing page accessible to members only, especially when it comes to exposing my members profile info.

    I’d love to have the activity stream private to. I’ve tried using the settings in the plugin but it does not appear to be making the required adjustments (hiding pages) etc.

    I really need to address this issue and would be delighted if it would work just as I need it.

    All my wp/bp is upto date and upgraded to the latest versions.



  70. Sorry, my code was automatically “cleaned” by WordPress.
    @Brandon, could you please correct my previous post?

  71. Hi, and thank you very much for your nice plugin.
    May I suggest an improvement? I have a public blog ( edited by many members. Single posts and pages are made private through WordPress Access Control when they are created. I wanted a way to apply a particular style to posts/pages where “Only accessible by members” is set, so to make visually clear to members if they posted something public or private.
    I tweaked index.php, single.php, page.php so that the “post” div gets a class=”wpac_is_members_only” when the post is private. This way I can apply a different style to that content.

    This is the code:
    <div class="post ID, ‘_wpac_is_members_only’, true ))echo ‘ wpac_is_members_only’; ?>”>

    In CSS I’m now able to put:
    /* Private posts (depends on plugin WordPress Access Control */
    .wpac_is_members_only h2.post_header:after { content: ” -Private-“; float: right; color: #ad1616; font-size: 70%; }

    This makes the string “-Private-” appear after post/page title.

    Suggestion: it should be nice to give administrators the possibility to apply different classes to content, depending on their private/public state, via WordPress Access Control configuration interface.

  72. Plugin is great. One issue though: when a comment widget is used, the comment snippets are shown even if the comments are asociated with a member only post.

    To see what i mean, have a look at and look for the section called “COMENTARII RECENTE” on the right. Last two comments are for a member only post…

  73. I think there is a problem with my theme (“Fluid Blue Theme”). Since I upgraded WP Access Control I have problems and had to desactivate it. Pity because it worked well.

  74. Getting a couple of warnings on the homepage (and many other pages), we are running WordPress 3.1.3 with Version 3.0.3 of this plugin. Have had to disable the plugin for now unfortunately, but I want it back, your help is appreciated:

    Warning: Missing argument 2 for WordPressAccessControl::posts_where_paged() in /home/spoffinn/public_html/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 509

    Warning: Missing argument 2 for WordPressAccessControl::posts_join_paged() in /home/spoffinn/public_html/wp-content/plugins/wordpress-access-control/wordpress-access-control.php on line 496

  75. This plugin is exactly what I was looking for. The only hiccup I ran into was it conflicts with page navigation. So, when you are on the home page or a category page the page navigation previous/next (via page-navi plugin) isn’t displayed regardless of member status. Any idea what would cause this? I’d love to use your plugin but can’t because it limits visitors more than what I was intending.

  76. I have the Access Control plugin installed OK, and when editing pages I see the “Only accessible by members?” and “Only accessible by non-members?” tick boxes. But how do I limit access to a page to “roles”? How do I create roles and assign them to members?

  77. I should like to use your Access Control plugin to control access to the members’ area page on this site. However, it is not clear to me how to create a login. When I visit the site now when logged out, the members’ area page has disappeared entirely – not really what I want to happen. It would be good if a login box were to appear when non-members attempt to visit the page; is this possible? I have WordPress 3.1.2.

    Sorry if I am being stupid here … I am new to WordPress.

    Many thanks


  78. Hello Brandon.

    I’m attempting to make a Custom Post Type for members only. I’m not sure how to do that.

    I read the above comments and read the part where you mention adding a filter to the custom post type code. I’ve attempted that and it did not work. I just wanted to make sure if there was something I was doing wrong.

    I’d appreciate your assistance.


  79. I’ve installed the plug in. Running latest WP with Suffusion theme. Plugin is activated, but I see no controls of any kind when I add a post. What to do?

  80. I have been using members only for years to hide our work in progress blogs from the public. Now, with 3.1 and multisite it sadly no longer works. Is there a way to hide the whole blog?

  81. Hi,

    I’ve been trying to find some help online but I’ve run out of ideas. I have WordPress 3.1 and am using one of the standard themes (Quentin) and version 2.1 of your plugin, but I am not getting the control options.

    Is there a step I am missing?

    Thank you for your assistance!

  82. Hi, love the simplicity of this plugin.

    I’m building a new site where most everything will be POSTS, with only one static PAGE. My navigation is by CATEGORY.

    Can I get the members-only-menu-plugin to protect POSTS, so they’re accessible only to logged-in members?

  83. Hi – I hope you are still actively working on this project. I was wondering how you were making out on getting posts and post excerpts folded into your plugin?

    Otherwise – this will probably work out well for my idea…

  84. Hi,

    thank you for your nice plugin. Very easy to use.

    One problem with search. When I search for words it shows no results as soon as I use a word of a page with no permission. Would be nice to show results for pages a user has access to.

    One idea for access control. When I create a new page it I have to set access every time. Which can be hard while creating tons of pages. What about to have a button “like last time” or to set a default in the configuration.

    Love Samira

  85. Hello first i love your plugin i got it to work on my site that i run wordpress 3.0.4 on.
    But i cant get it to work on a site that runs wordpress 2.9.2.
    The problem is that the plugin dosent shows up in a page so that i can click if the page should be for members or not.

  86. Leo Seccia :Hi Brandon,
    I am using your plugin and it rocks. It does exactly what I need… However I had to change it slightly to redirect the user once logged in.
    Here is my change:
    function check_for_members_only(){global $post;
    if ( get_post_meta($post->ID, ‘_members_only_menu’, true) && !is_user_logged_in()) {header(‘Location: ‘ . get_bloginfo(‘wpurl’) . ‘/wp-login.php?redirect_to=’ . get_permalink($post->ID));exit();}}

    I, too, would like to see a “Landing Page” for users logging in. I would like to send them to the page with the protected content, directly.



  87. hello,

    i just install your plugin in plugins directory and activate it. but i do not see the tab to set the access in the post page whether i want to edit a published post or make a new one. what should i do now? can you help?

  88. I really like this plug-in and want to use it to secure part of my website to registered users only. I’ve set some pages as members-only with a redirect URL to a “sorry, the page you reached cannot be found” for unregisterd users who attempt to access.

    The problem is SEARCH. If a guest searches for a term that is ONLY on a restricted page then the expected behavior occurs and they are sent to the page-not-found. However, if they search for a common term that exists in BOTH restricted and unrestricted pages they are STILL sent to the page-not-found URL.

    The expected behavior would be to have them get the list of pages and posts without the restricted ones listed. Is this possible with this plug-in? To see the behavior, try searching for “banana” and “list” on my site. “list” occurs on a number of open pages while “banana” is only on a restricted page.

  89. Hey, great plugin. Is there a way to modify it so that new posts/pages default to being “Only accessible by members?”


  90. Hi, I upgraded my version of WordPress and everything works fine now! Another question though – when a member logs in to access a restricted page they are brought to the Admin / Profile page. How can they go straight to the restricted page immediately after log in?

  91. Hello. First of all, great pluggin. Nice and simple. However, the plugin jacks with my top navigation CSS.. all of the spacing, etc. is gone and the new navigation is one continuous word. Can you help me fix whatever causes the CSS interference? thank you so much.


  92. Hi Brandon,

    Installation was easy and I can see it the plugin activated in my Plugin directory. However I can not see the plugin on the front end when I edit or add a post/page. Shouldn’t it be on the right hand side? Maybe I am missing something very obvious!
    When I edit the plugin meta_box.php has inactive in brackets beside it, whereas wordpress-access-control.php has active beside it. Could this be part of the problem?

    Would appreciate any help!

  93. I haven’t programmed an interface YET but you can add a simple filter to your custom post type code that uses one of my filters.

    add_filter('wp_access_supported_pages', 'your_func_here');

    function your_func_here($pages) {
    $pages[] = 'your_custom_post_type';

    return $pages;

  94. Your plugin best fits my needs, thank you! Just one minor thing – I would like to see what pages are restricted at first sight. Is there a way to add an members-only-indicator in the pages list?

  95. what I need is a feature where you can block pages and article for only subcribtion members. all our members who sign up can view it but I need members who only want to view a particular topic. I have teen section and adult content. so I want to only have this for some.

  96. Hiding pages for logged in users is definitely useful! I really really hope you include that feature in your next update, and I hope your update is soon!

  97. Hi Brandon,

    I am using your plugin and it rocks. It does exactly what I need… However I had to change it slightly to redirect the user once logged in.

    Here is my change:

    function check_for_members_only()
    global $post;

    if ( get_post_meta($post->ID, ‘_members_only_menu’, true) && !is_user_logged_in()) {
    header(‘Location: ‘ . get_bloginfo(‘wpurl’) . ‘/wp-login.php?redirect_to=’ . get_permalink($post->ID));

  98. Hi… I’m setting up a VERY private blog for my son and I.

    I’ve been playing around with and this Members Only Plugin seems to best suit what I want to do.

    However, having installed it and made various pages Members Only when viewing the site the header image was not aligned correctly, the background colour and setting spilled over into my blank page and it just looked plain ugly.

    I’ve ‘unplugged’ it at the moment and am writing to you to ask if there is an easy solution to this problem.

    Thanks in anticipation


  99. 1. Upload members-only-menu-plugin/ to the /wp-content/plugins/ directory = OK

    2. Activate the plugin through the ‘Plugins’ menu in WordPress = OK

    3. You can now go to a page and mark it as members only. = impossible. No marker does not appear in edit page. I have PHP 5 – WP: 2.9.2. Suffusion theme. This Theme is very critical. Several plugins are not compatible with Suffusion. Pity, because begging your plugin seemed interesting. Hello

  100. 1. Upload members-only-menu-plugin/ to the /wp-content/plugins/ directory = OK

    2. Activate the plugin through the ‘Plugins’ menu in WordPress = OK

    3. You can now go to a page and mark it as members only. = impossible. No marker does not appear in edit page. I have PHP 5 – WP: 2.9.2. Suffusion theme

Leave a Reply

Your email address will not be published. Required fields are marked *