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.

Is there a way to prevent duplication of usernames? Once logged in to my site, the users have access to a forum, and with duplicated usernames, things will get confusing.
WP-Members registers users via the WP registration hooks. Using the WP functions
username_existsandemail_exists, it does not allow duplicate usernames or email addresses that are in the WP users table. So if your forum relies on the WP users table, then you should integrate just fine.Thanks for the speedy reply Chad, It was working all along
I’ve followed the instructions correctly (I think) but cannot figure out where the ‘registration’ link is supposed to show up. I tried putting the widget in the sidebar but it only shows log-in user/pass fields. No register link. What am I doing wrong?
If you set up a registration page using the register shortcode and if you put the URL of that page in Register Page URL setting in the plugin’s options, then a link to the registration page will show on both the sidebar widget and the login form that shows in the body.
If the Register Page URL setting is left blank, then this link will be excluded.
Chad; thanks so much for the prompt reply. That was exactly what I was looking for and had created the page but didn’t realize I needed to put the URL in the settings section. Link now shows up as expected.
Thanks again;
Hinson
I’m having a problem since installing version 2.7. The user gets created but no email goes out, to them or to admin.
I’m increasingly certain the problem is isolated to this plug-in. I’ve tested a bunch of times:
Create a new user in the Admin Panel using Add User:
- user created
- emails go out
Create a new user using the wp-members form:
- user created
- NO emails go out.
Additional information:
This was working fine before, now it’s not.
I have it set to auto-approve the user, and this working as expected.
I’ve checked the installation against a freshly downloaded and unzipped copy, and the contents are identical.
Nothing showing up in the error_log related to this.
Any suggestions on how to proceed?
Hi Chad,
Great plugin and works good for me. I am only using it for logins not registration.
I added your members login widget to my sidebar which i really like. So my question is:
1) when a user is not logged in and click on the members-area page they get your
message and login form. I would only like a message to appear because the widget
already shows the login form.
Thanks for a great plugin…
Mel
I understand what you are asking, but that’s not an option that the plugin offers.
Mel; what I did was create a text widget with link for the password and profile info and placed it on the sidebar under the log-in widget. You can see what I mean here. http://www.hinsonroots.org/wp
Is this something that might help you?
Hi Hinson,
That looks good and would remove my having two login forms…. I will give it a try… thanks…..
this forum is great and love the plugin….
Hey guys, you are doing a great job. I love this plugin and using it successfully. I will certainly make a donation to you. You really deserve it. You really deserve appreciation for such a great work without any fee. Thanks
Hi Chad,
1) I see that the new version 2.7 is available! If i allow members to choose their own password, will they still get an email with their login information?
2) Is it possible to let the members automatically login after the registration? especially when they are allowed to choose their password.
Thanks.
Yes on both counts.
I am trying to find a way to work WP-Members with Alo EasyMail Newsletter without having to use Alo EMN for subscription purposes. I added a field to use for opt-in on the WPM fields tab. Installing Alo adds the Yes/No field for newsletter with the native WP user login/reg; and I can import subscribers from WP-Members into my newsletter subscribers, but when I do that it grabs all registered users with no way to select only those that have checked the field I added to WPM. Since WPM already pulls the native field from WP into the field tab, any way that I can also pull Alo’s optin field to WPM’s field tab?
IF Alo’s optin field is stored in the usermeta table, you could probably add this to the WPM fields. You would need to know what the meta_key for Alo is, this would be what you would set in the option name when creating the field in the WPM fields tab. I assume it would be checkbox, so you would also need to know what value it stores in the meta_value, which is what you would set for stored value if checked.
Great – thanks – this gives me something to start looking for and see what I can figure out.
I want to secure my WordPress website to use as a company private intranet. I have a list of users (names and e-mail) and they will be the only ones to access for company information. The only changes they will be making will be to submit reports via filling out a capture form. So anyone accessing our URL will be presented a login screen (nothing else publicly visible) and then they can see the site once logged in. Is your plugin suitable for this and is it a simple setup to block ALL or do I have to go level by level to do this? Also, what ‘role’ (level) would be assigned to these users to accomplish this with your plugin?
This is probably not the plugin you are looking for.
Awesome plugin, I’ve minimized the form, using css and changed the structure and use 100% width etc etc – I’m now trying to add the form [shortcode] into a widget – but it gives me an error, how do I add this form to a widget?
Regards
There are a number of issues here. First, shortcode processing in text widgets is not necessarily enabled by default. You can do that by adding a filter to your theme’s functions.php file:
add_filter('widget_text', 'do_shortcode');However, the WP-Members shortcodes are not intended for use in widgets, so while you can enable your widgets to execute shortcodes, you probably will find that this not going to work very well.
What exactly is it you are trying to put into the widget area? The plugin already has a login widget available.
WP-Members is great I’m glade I found it. This does every thing that I wanted and it was easy to set up but I do have one Issues and after viewing the guide and the forum I don’t see any thing on it.
I have my site unblocked by default and have one page block so only subscribers can use it but I’m have a issue once they get their and sign in the page opens but when the leave the page it not loging out when they come back to that page it open and the can view it. I thought maybe it was because they weren’t using the log out option on the top of the replay box header so I made sure they retried and use the log out and when there do it they end up with this ( You are attempting to log out of NYTRO Inc Do you really want to log out?) they click on the log out and they get dricted to this page NYTRO IncYou are now logged out.
WordPress
You are now logged out
Username
Password
Remember Me
Lost your password?
← Back to NYTRO Inc
So you would think they are logged out but know if there to go back to the site and click on the button for that page instead of getting the log in box the page is open to review.
What am I Missing here?
Thank you
Hello,
I use this plug in and i’m 100% pleased.
The last days I have a problem. When a new user registers, the email that takes is blank. I take the same email because i’m the admin and it’s blank to me too. I made a new user through wp and i received the mail with the right content. I suppose that the bug is in wp_members plug in. Can you please tell me what to do?
Is this in WP-Members 2.7? If so, check the email tab in the plugin settings to make sure the default messages loaded during the install/upgrade:
http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Hi there,
Great plugin, I just have a small problem. I have one page on my site that is restricted to members only. This page features links to posts displayed as a thumbnail and the post title. The restriction works fine for the posts – you click and it asks you to login, but I don’t want the thumbnail/titles to be visible at all on the page. All post links display below the page login area. Any idea how I can hide these links until the user has logged in?
-Thanks.
Great Plug-in!! Thanks for developing it.
Is there a way to resend login credentials to all users at once. I got caught in the 2.7.0 email issue. I activated a bunch of users and they did not get log-in credentials, before I noticed the above post.
Thanks have a great week.
Sorry to hear that Andrew – I’m sure that’s frustrating. The easiest way to do that would actually be directly in the database (make a backup FIRST!!). You can use PHPMyAdmin or some other tool.
Essentially, the activation process puts a flag ‘active’ in usermeta for the user. If you delete this meta value for any user you activated, you can then go an reactivate them in the plugin. It will definitely be a plus if you know which users you activated.
Did I mention, make a db backup BEFORE trying this?
Get a list of the users that you activated in order of the user IDs:
SELECT * FROM `wp_usermeta` WHERE meta_key = 'active' ORDER BY user_id;Then you can see where you need to delete. I would doublecheck the user IDs you are working with, but if they are sequential, you could use something like the following, making the assumption that all users with a user ID higher than 41 (but not including 41) need to be reset:
DELETE FROM `wp_usermeta` WHERE meta_key = 'active' AND user_id > 41;This would delete all the records where the user ID is greater than 41 and the meta_key is ‘active’. Then you could go into the plugin’s user management table and do the activation process again.
If you are dealing with just a few users, it might be just as easy to reset the passwords in the user profile and send them a personal note. If it’s more than a few, the above is probably your best bet.
Hope that helps!
(Incidentally, the 2.7.1 update will include a deactivation process so you could deactivate the users (although not in bulk), then reactivate (individually or in bulk). If you want to try that, I will have a release candidate out for public beta trial sometime tonight. It will be posted on the blog.)
Is there a way to remove the “This post is password protected. Enter a password to view any comments.” on the password protected pages?
Also, is there a way to remove the powered by wp-members? Maybe with an upgrade?
Thanks!
Hi Chad,
Is there a way to change the field legend? I would like to change the text that says
“Existing users login” and “New user registration” on the registration page.
Thanks!
The only way to do that would be with the pluggable functions feature. The functions involved would be found in wp-members-dialogs.php. I have to warn you that in this case, it would be a little messy. You would be making a custom function for the entire registration form to change just the heading. Even though you can upgrade cleanly using this process, you’ll still need to monitor upgrades for changes to that particular function.
Awesome Plugin .. Thanx a ton !!
Please help me in removing the wordpress status bar that appears on top of page after the user logs in.
Thanks..
http://butlerblog.com/2011/09/23/how-to-disable-the-wordpress-admin-bar/
Thank you so much !!
Hi, I am using a landing page and once a member logs in I would like redirect them to a page of recent blog entries is this something that can be done with wp members. Love the plugin its a lifesaver to the php impaired.
Thanks DJ
You can test the 2.7.1 beta. There is a filter hook for a login redirect, although the hooks included in that release are subject to change. (Information what is in the release and where to download here.)
An example of the wpmem_login_redirect hook would be to add something like this to your functions.php file:
add_filter( 'wpmem_login_redirect', 'my_login_redirect' ); function my_login_redirect() { return 'http://yourdomain.com/your-page'; }Thanks Chad Ill give 2.7.1 a try
DJ
How do i delete a registared member?
You can delete a user from the Users > All Users menu. However, if you delete a user, that frees up that email to be registered again, so if it’s someone you are trying to keep from re-registering later, it would be better to change their password to something random. (Also, if you use user moderation/activation, the new 2.7.1 beta adds user deactivation.)
I have upgraded to the latest version, and now I am facing some problems with the email communications with the users.
There are 4 emails in in admin area:
Registration is Moderated.
Registration is Moderated. User Approved
Password Reset
Admin Notification
but to whom are the mail intended? and what should be the content of these?
Mikael – Sounds like you are one of the ones experiencing this problem: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Also, the 2.7.1 upgrade will fix this (and provide some additional features). It is presently in beta, but most of it is fairly seamless. Just doing some additional testing on the new activation/deactivation features. http://butlerblog.com/2012/01/30/wp-members-2-7-1-beta-release/
Hey Chad,
I’m having a few issues over here with trying to get these short codes working on my pages. I’m building a site for a client who wants restricted access to a few pages and a way for people to register to the site. I have your plugin installed and seemingly working fine, but I’m unable to see anything on the pages I add the short codes to.
I’m adding both the registration code [wp-members page="register"] and the members a [wp-members page="members-area"], but even though I’m adding these codes they’re not showing up on the pages. I don’t have any pages/posts blocked by default, and I even have the custom fields used for unblocking a page. Can you please give me some help kind sir?
Have you tested this with other plugins turned off to see if there is a conflict with something else?
I turned off a few plugins I wasn’t using and that did the trick I believe. Thanks Chad, Killer plugin!
Also check and see if the theme you are using requires you to either check or un-check pages somewhere in the settings to have them show up on the nav bar. My theme (suffusion) does.
This is probably something embarrassingly simple, so I beg pardon in advance. Nonetheless, I can’t seem to find a definitive statement on how to access custom user field information in page code.
I’ve added a custom user field called “theme” which I want to use to select the background for various pages, so on the code for that page or category, I get the current user, then what? All I want is the string saved in the “theme” custom user field to append onto my file name url.
Well, I bloody well figured it out and it was just too simple
echo esc_attr(get_the_author_meta(‘theme’,$current_user->ID));
Or using the get_user_meta function (http://codex.wordpress.org/Function_Reference/get_user_meta)
Hi
I am not sure this it is “Out of the box”.
I have put the widget “WP Members login” in the sidebar, but I don’t see any link to users where they can register themselves.
I installed the plugin via wp – searched for wp mebers – activated it and folloved the quick start guide.
Nothing is locked.
“Out of the box” means that you don’t have to do anything but install it. Unlike some other plugins, you do not have to wrap protected content with shortcodes (although that option is available). You can just specify that you want all posts to be blocked by default.
If you followed the instructions in the Quick Start Guide correctly, you should be blocking content. Perhaps you did not understand all of the instructions? Remember that Posts and Pages are handled separately and on Posts, you MUST be using the ‘more’ tag. Also when blocking pages, if you have selected to show excerpts, you MUST use the ‘more’ tag. These are the two most common issues when someone says, “nothing is locked”
There is no automatic link on the widget to register. If you have set up a specific registration page using the [wp-members page="register"] shortcode, then specifying the location of that page in the plugin’s options will display a link to it in the login form. Likewise, if you set up a the members-area page for managing user registration information using the [wp-members page="members-area"] shortcode, and specify the location of that page in the plugin’s options, it will display a forgot password link in the login form.
I am having the same issue as a couple other people. When a new member registers, they are not receiving an email with their password. I have tried setting up a new user in the WP User area and it works fine, WP emails the password to new user. When I create a new user on the WP-Members Registration page, the user is created but does not receive a confirming e-mail.
1) I have disabled plugins recently installed
2) Tried resetting the permanent links
3) Checked my settings in the WP-Members Settings panel
Thanks to anyone who has a solution!
Gary
Is this a new install that never was working or is it an upgrade that was working before?
I installed WP-Members back a few months ago and it was working fine. It’s only a demo site so it’s not being used everyday. At some point it stopped sending password e-mails to new registrations, not sure when?
I haven’t added any new plugins to the site except maybe updated WordPress.
This will likely solve your problem: http://butlerblog.com/2012/01/23/wp-members-2-7-0-email-issues/
Hey chad back again,
This time I’m having issues with registration. It seems everytime someone fills out the registration form an error is made.
Fatal error: Call to undefined function validate_username() in /home/content/30/8870630/html/wp-content/plugins/wp-members/wp-members-register.php on line 67
I don’t know what to do, any suggestions?
That is very strange – validate_username is a native WP function that is part of the User API, so there’s not a reason that it would not be loaded. I took a look at your site and it seems to be working to me.
I installed WP Members into my WordPress site using the theme Elbee Elgee, and it was mostly working fine to block users that were not logged in from seeing certain pages…..instead the user was presented with the Existing Users login fields. I had to change my theme to Theme 2011 to have the archives and categories in the sidebar display full text to users who were logged in. Now, for a user that is not logged in, the page is blocked and the Existing Users login field is displayed but I’m also seeing a comment or footer at the page bottom telling me that this post is password protected…and it’s not. If I do a “view source” I find these lines
This post is password protected. Enter the password to view any comments.
in the source for the particular page id.
I’m not a programmer so I’d rather not change any of the source code files. Is there a setting or conflict of settings that I’m running into?
In order to prevent comments from displaying to users that are not logged in, WP-Members generates a password on the fly for any content that is blocked. The text you referring to comes from your theme’s comments template.