I activated the plugin and went to test it and it didn’t block my post?
Make sure you log out of the admin before you test. If you are logged in as admin, you will be able to click through to view the post. (To know if you are logged in, we suggest using the WP-Members login widget, included in the installation. However, you must have the widgets plugin and a widget enabled theme to use this feature.)
Also, for posts, be sure you are using the `<!–more–>` tag. The blocking only takes place on single posts. Without this tag, a full post would display on your home page or on an archive/category page.
Check your settings for both posts and pages. The default installation is to block posts by default but not pages.
How can I show the login status on the sidebar?
If your theme is widget enabled, activate the widgets plugin, then add the WP-Members widget to your sidebar. If you do not have widgets, you can call the function by adding this to your sidebar:
<?php wpmem_inc_sidebar(); ?>
I’m really only using this to add user fields and have the login integrated into the site. I would rather that posts be unblocked by default. How do I do that?
WP-Members gives you the ability to change the settings for how the plugin blocks content. The default setting is to block posts and allow individual posts to be set to unblock at the post level. You can change this setting so that all posts will be viewable by default. If you then have a post that you want blocked to registered members only, you can set the post to block at the post level.
How do I block (or unblock) an individual post (or page)?
If you are using the default settings (as mentioned above), and you have a post that you want to be unblocked (viewable by any user, not just logged in users), on the Edit Post page add a Custom Field with the name “unblock” and set the value to “true” or “1″ (either will work). This post will be now be viewable by anyone. If you have set WP-Members to unblock by default and you want to block an individual post, use a Custom Field with the name “block” and set the value to “true” or “1″. Important: custom fields are case-sensitive! Be certain that you use all lowercase or it will not work.
How to I change the registration fields that are used and which ones are required?
These settings can be managed on the WP-Members admin panel found under Settings > WP-Members
Where do I find the users registration information?
WP-Members was designed to fully integrate with WordPress to allow maximum compatibility not only with WP, but also with other plugins that rely on WP user registration information, such as discussion forums, email newsletters, etc. The user information is in the main WP users page under Users > Users, then click “Edit” under an individual user. Any non-native WP fields (WP-Members custom fields) are added to the bottom of this page and are fully editable. (Note: if you don’t have any registered users yet, i.e. a clean install, these fields will not display until there is data in them.)
New in 2.5: There is now a WP-Members bulk user edit panel where you can see a list of users, view key details such as email, phone, and country, as well as do bulk activations and exports. This is found under the WP Users menu: Users > WP-Members. For bulk user export, WP-Members keeps track of users that are exported so that you don’t have to export the full user list just to get a few new subscribers, but you can also export the full list.
Users are not being emailed their passwords, what is wrong?
WP-Members uses the native WP function wp_mail to email passwords. This is the same function the WP uses if you are using the WP registration process. If it’s not configured properly or for some other reason not working, neither will WP-Members’ registration process.
You can test this process by creating a new user via the WP admin panel. Go to Users > Add New in the menu and create a new user. Make sure when you do this “Send this password to the new user by email” is checked. If you do not get an email, then wp_mail is not working. If that is the case, you are probably going to have to do some troubleshooting to fix it. Try the WP support forums for this: http://wordpress.org/tags/wp_mail
Can I change the email address that messages are mailed from?
Most people are unaware that WP-Members uses the native function wp_mail, and that wp_mail sends messages from wordpress@mydomain.com. But it is easy to override this. You can do it with a couple of filters added to your functions.php file or you can do it with a plugin.
Can I customize the way the login and registration forms look?
Yes! You can specify a custom style sheet for the default login and registration forms. These forms are tabless and customizable using CSS.
CSS can be applied to the legacy forms, but must be applied via an outside stylesheet (such as your theme), and since the forms are table-based, the customization options are limited.
The login and registration fields overlap my theme pages. How can I fix that?
WP-Members includes a default stylesheet that was developed using the (formerly) default TwentyTen theme. Depending on the theme you are using, this may not fit your theme right out of the box. But the forms have been developed to be very flexible by relying on CSS for their layout (see above). If you have issues of overlap or other issues with the form layout, these are addressed by customizing the CSS.
Can I customize the plugin?
It is not recommended to make direct code changes as they would need to be reimplemented in the event of a plugin upgrade.
I only want the login form to show in place of protected content and have a separate registration page. How can I do that?
If you turn off the registration in the plugin options, the registration form will not show on protected content posts/pages or the members area. Specify a registration page following the plugin instructions and set this page’s location in the plugin settings.
I need customized registration fields. How can I add/subtract fields?
The registration fields used by the plugin are stored in an array in the WP options table. NEW in version 2.6: New text, text area, and checkbox fields can be added in the Fields admin panel in the plugin’s settings menu. Alternatively, a description of how to customize the fields programmatically is available in this post.


If I understand your plugin capability after reviewing the documetnation, it appears that all members have the same access. (i.e., once a member is logged in, they will have access to anything any other member has access to – that there is only one membership ‘level’). That will work for my needs if correct.
I have a team of members already established that I’d like to add to a new site. Can I import a list of members into the USERS list (e.g. name, e-mail address, password)?
So my thoughts on the process would be:
1. Install WP
2. Add your plugin (block all pages and content)
3. Import members. (maybe this is #2 step instead?)
Now only members can access content on he site. Correct?
That depends on what you mean by “the site.” If you are looking for something that blocks users from viewing anything as you described in your original question, this isn’t going to be what you want. This plugin restricts content specifically. The navigation structure will remain intact (although you can make customizations to your theme to allow for different menus based on login, etc).
Also, as you previously indicated, you asked about users being able to post content via the plugin, which the plugin also does not do. WordPress does already have built in solutions for this with different user levels. The plugin will assign all registered users whatever you have set in WP as the default role. You can set that to something that allows content posting if you want.
You won’t be able to straight import passwords. WP encrypts passwords in the database using PHPass. If your password import is PHPass encrypted OR MD5 Hash encrypted, then you would be ok to import directly. (If passwords are MD5 encrypted, WP can read the password and will re-encrypt to PHPass when the user logs in.)
I thought I did everything right, but when I log off then google certain posts, sometimes I can get them in their entirety…sometimes I’m directed to the registration page. I’m not at all well-versed in code, but do I need to go to “screen options” for each post and make sure it’s blocked there in addition to having the “block posts by default” button checked? I’ve had terrible trouble with lurkers and a stalker and need to make sure I’ve buttoned down every bit of access to anyone who is not a member. Thanks for your help!
You are not using the ‘more’ tag in your posts, hence the full content of each post is available in category archives. Please review the information on protecting posts in the Users Guide and/or the Quick Start Guide (page 3) or the very first FAQ on this page for more about this.
Hi, thank you very much for the WP-Members plug-in. I plan to use it for a site to display primium content only for the members. While learning the plug-in, i checked “Holds new registrations for admin approval” option at Manage Options. But then whenever i tried to edit a user and update User, without checking the check box “Deactivate this user?” option turned to “Reactivate this user?” and “Activated?” area of the user turned to “No”. I looked at the file wp-members-admin.php. I found out that if the check box is unchecked; it sends the value=”0″ which is the value which has to be send when “Deactivate this user?” is checked. So “Deactivate this user?” always sends the checked value whether it’s checked or not. To fix this i have made 2 little changes at wp-members-admin.php
If there is a better way, i would like to know about it and correct my code.
$label = __( ‘Deactivate this user?’, ‘wp-members’ );
$action = 2; //$action = 1; to$action = 2; at line 118
break;
and
elseif( $wpmem_activate_user == 2 ) {//$wpmem_activate_user == 1 to $wpmem_activate_user == 2 at line 168
wpmem_a_deactivate_user( $user_id );
}
I didn’t define anything for the case $wpmem_activate_user == 0 because if the check box is unchecked everyting should stay the way it was.
I tested it carefully and it works very well now. Since i am very new to php and WordPress, i am not sure if i did something wrong. But i like to think as long as it’s work it should be fine. Maybe there is a better way to fix this but unfortunatelly i could not figure it out by myself
It is never a good idea to be editing plugin files directly. Obviously, in some instances, you might have to if a plugin is not longer supported. But it is generally a very bad idea to get into this habit. If you make a direct change to a file in a plugin, that change will be overwritten when you upgrade the plugin. When upgrades are available, it is a good rule of thumb to upgrade. (NOTE: it is also a good rule to test an upgrade in a testing environment before upgrading a live site.) When a plugin is upgraded it is generally fixing something.
What version of the plugin are you using? The problem you are describing was limited to the 2.7.1 release and was fixed in 2.7.2. So if you are using 2.7.1, you just need to upgrade. If you are using 2.7.2, you need to let me know so we can look into why this is a problem.
I do like your solution and although the fix is already in place, it’s similar to a direction that I considered. I may still change it completely. However, the problem isn’t exactly because “if the check box is unchecked; it sends the value=”0″.” It actually sends and empty value ”. In php, comparison operators can be a little tricky. The problem is that using “is equal to”, ” == 0 is true. But these are not identical because 0 is an integer and ” is not. So I probably should have used the comparison operator “is identical to” or ===. This would have been false because ” === 0 is false as they are not of the same type (unlike ” == 0, where type does not matter). Hope that makes sense.
Thank you very much for your reply. I have upgraded to WP-Members 2.7.2 and the problem is solved.