List of Available Shortcodes for WP-Members™

Shortcodes for email messages:

  • [blogname] – the Site Title you have specified under Settings > General
  • [username]
  • [password]
  • [reglink] – a link to the page the user registered on (useful to return a user directly to the content they registered to view)
  • [members-area] – the members area where, among other things, the user can change their random password to whatever they want

These shortcodes are only available in the admin notification email:

  • [email] – the user’s email address
  • [fields] – a list of any of the registration fields
  • [user-ip] – the user’s IP address when they registered
  • [activate-user] -a link to the user profile page so they can be activated (used if moderating registration)

Page Shortcodes:

These page shortcodes run various optional pages for the plugin:

  • [wp-members page="members-area"] – creates a page where a logged in user can update their registration information or change a password, and a logged out user can reset a forgotten password.
  • [wp-members page="register"] – creates a page specifically for registration.
  • [wp-members page="login"] – creates a page specifically for logging in.

Status Shortcodes:

The status shortcodes determine whether content should be shown based on the user’s login status.

  • [wp-members status="in"]Content to display if user is logged in[/wp-members]
  • [wp-members status="out"]Content to display if user is logged out[/wp-members]

121 Responses to List of Available Shortcodes for WP-Members™

  1. Hey Chad, When I Putting The Code “[wp-members page="register"] It Doesn’t Work! Like Here : | And Also, The Log-In Page, Doesn’t Work Also! Here : | Will You Help Me? Please?

  2. Manish says:

    Hi … thnks for the nice plugin.
    I have set “users must be logged in to comment”. Now there is a link below post/page that says “you must be loggedin to comment” and clicking this link takes to backend login page of wordpress. I need users to login/register through the page created by me using this plugin’s shortcode.
    I know this can be done by editing template files and creating a link to my register page but would appreciate if the plugin takes care of this automatically.
    thnks and regards

  3. Joyce says:

    How come when I use [password] in an e-mail, it doesn’t show up when being delivered to the user? Is this a known bug?

    • Chad says:

      If you have set up the plugin to use user defined passwords AND moderated registration, you cannot send the password when the user is approved. If that is the combination of settings you have set up, and you want to send the user a copy of their password (which is not a requirement, since they are choosing it), you have to do it in the welcome email and not the user is approved email. The default email content does not reflect this because that is not the default install of the plugin.

      If that needs clarification, or you have another combinations of settings, let me know.

  4. gh8421 says:

    Great plugin, works very well.

    Just wondering if there is anyway to show certain information to members based on their role. For example if a “Subscriber” is signed in, they can see a list of posts, but if an “Administrator” is logged in they can see several paragraphs of text?

    Thanks!

  5. Pushpak Kacholia says:

    Hi
    i am using the short code [wp-members status="in"] to hide content from users who are not logged in. But its not working. Its applied on an internal page form that i have designed and i want that to hide it from the user till he does not login into his account.

    • Chad says:

      Do you have the closing tag with that ( [wp-members status="in"] logged in content here… [/wp-members] )? Are there any additional shortcodes on the page? What version of WP-Members are you using?

  6. Tanusree Bhattacharya says:

    Your plugin is awesome and had a great help ……thank u……..

  7. On my WP Member login widget my “forgot password” link is not working and when they click it it redirects people to a registration page that is nonexistent. Where do I change the forget password option?

  8. Abhay says:

    Hello there !

    I have a members page with a navigation bar and a widget for displaying status, my members page is using a template file for the layout.
    With the template selected to my custom template the plugin is not restricting any content from the page, but if a switch back to default it works.
    Can you please help me how I can use this with custom template pages.

    Regards,
    Abahy.

  9. sachin says:

    This Plugin is awsome to use, As i am web developer and i used this in number of my websites. And its provide me great Help .

    Thanks SO Much
    Sachin

  10. Tiffani says:

    I added custom profile fields for the users of the site and when I go to view their profile, it isn’t showing the custom fields for the information I requested. Any idea why? I’ve been researching for a few days.

    • Chad says:

      Isn’t showing the fields? Or it isn’t showing data in the fields?

      Are the fields set as required fields in the plugin field manager?

      Are you using W3 Total Cache?

      • Tiffani says:

        The users are able to input the information into the fields when they register but it is not showing up on the Members page or on their individual profiles when you click on their names. Only the original fields (name, website, profile, activity) are showing.

        I have display checked and the fields are not set as required because I am not requiring that all people have a twitter account or amazon wishlist to signup.

        I don’t know what W3 Total Cache is so I’m probably not using it.

        • Chad says:

          Any fields that are not WP native fields will be included at the bottom of the user profile. If there is not data in there and you are not using a caching plugin, then the next question would be are you sure that users are putting data into those fields, since they are not required? Have you tested the form from the front end and determined that data is not being captured?

  11. Simran says:

    The plugin was working perfect till some time back. A problem I have noticed recetly is that the mail to admin does not contain the data in [fields] even though the new user has filled and submitted the information. Also the [reglink] is missing from the user email. Kindly help!

  12. Kendal says:

    I have the box checked to ‘ Hold new registrations for admin approval’

    Which admin is supposed to get notified of these new registrations? The wordpress admin or the email address that is connected through WP-members?

    Right now I am not getting any email notification of a new member registering…please help!

    http://www.cookcountyadvertiser.com/

  13. A Waddington says:

    I’m not quite clear what the plugin-settings/options page (which you referred Chad to in a reply above) is saying under, for example, Members Area URL. When it says “allows you to establish a Members Settings Area…” and I specify a URL, does this mean that WP-members will then create the page at that URL ? Or do I need to create a page somehow and give WP-members the URL of that? If the latter, where is the bit of manual that tells me how to create such a page ?

    • A Waddington says:

      Oh, I see – I have to create a normal wordpress page and include the “page shortcode” in it, then record the URL that wordpress uses for that page. It would help if that was made a bit more explicit in your documentation – there’s very little you can take as “read” for new users. I suppose making them google for what “page shortcode” might mean does result in their gaining a better understanding quite quickly :-)

      • Chad says:

        I understand that the full users guide is a bit verbose, but the setup is also described in the Quick Start Guide. I’m not sure how much more explicit I can make it.

        • A Waddington says:

          Verbose is good! But I’d got here through a web search or a useful link and hadn’t actually found the full user guide or quick start guide when I first posted – typical programmer assuming I could figure everything out by just playing. However, in *this* page it says “These page shortcodes run various optional pages for the plugin” and it is far from clear to a new user what that means… when he doesn’t understand what you mean by “page shortcode”, or indeed “run optional pages”. It was not clear that I had to create my own pages and use these shortcodes within them. It would be nice to make that clearer on this post, however explicit the user guide might be..

          Real useful plugin, BTW, although I found I had to add wordpress-access-control as well, since I wanted hidden content to be completely invisible to non-logged-in users, rather than the title and part (or all if I didn’t use ‘more’) of the post being visible. Less than 2% of my pages are ever going to be “members only”, but for those that are, I don’t want non-members (or anyone not logged in) to have even the slightest clue that the pages exist.

          Thanks, Andy

  14. vrun says:

    Hi,

    http://www.lmnobroker.com after filling all data on sign-up page when I click on submit, one pop-up comes where I have to confirm the agreement. I want to change content of that form. Can you please advice that from where I can do that?

    Thanks
    Vrun

    • Chad says:

      I had a look at your site and while I see that you are using WP-Members, I have no idea where that pop-up is coming from. It is not part of the WP-Members plugin.

  15. Hai,
    I am a webmaster to 20 wordpress sites and using your WP Members plugin. But I am not finding any option to use photo/image i.e. alternative to Gravatar. give some idea to add a custom field to define images for members or registrants.
    Please reply ASAP.

  16. iKevin says:

    How can I make the login and registration forms show in a pop-up or, better yet, a lightbox? Also, is there a log-out shortcode?

  17. bob says:

    How to remove
    Forgot password? Click here to reset
    on login page?

    Thanks

  18. Jomo Johnson says:

    I installed and activated the plug-in. But I don’t see it doing anything on my site. I logged out of my admin page and was still able to access content. I went to my site with my PHone and none of the content was blocked.

    It is necessary to enter shortcode somewhere?

  19. Simran says:

    Hi Chad,

    I really like your plugin and am using it on my website.
    There is a slight problem though!
    All the posts are restricted to logged in members. However, I find that search engine, esp Google throws up my admin username and Author Page and all the posts can be viewed by anyone following that link. For eg. mysite.com/author/admin username/page/16/ without the need to login.
    Can you please suggest a solution to this problem.
    Thanks

  20. pratik says:

    i have one query i want to check that there must be Upper caase letters Lower case letters as well as special character in password so how can i do that

  21. Emma says:

    Hi there, love the plugin. Thanks so much for sharing. Just one question, is there a shortcode to grab the user’s sign up/register date?

    Thanks!

  22. Simran Joshi says:

    Thanks Chad. I have another query. I want to integrate my website with a payment gateway. It seems WP Members is not compatible with CCAvenue payment gateway, which is the most popular one for India. Paypal is unsuitable for India, as there is no option to receive payment from within India. Could you please suggest a suitable payment gateway which is compatible with WP Members?

    • Chad says:

      At present, there is only a PayPal option (this is a premium add-on). I’ll probably extend that to include other gateways at some point, but that’s a ways off in development.

  23. w-shadow.com says:

    Please let me know if you’re looking for a writer for your blog. You have some really great articles and I feel I would be a good asset. If you ever want to take some of the load off, I’d absolutely love to write some content for your blog in exchange for a link back to mine.
    Please shoot me an e-mail if interested. Thank you!

  24. Maciek says:

    Hi,
    First of all: great plugin, thank you, I surely will join the club.

    How to configure it, or posts directly, to see on the right side of the title which post is free and which is for members only?

    Merry Christmas!
    Maciek

Comments for this page are now closed.
All support for WP-Members has moved to rocketgeek.com.