PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Shortcode

s2Member Plugin. A Membership plugin for WordPress®.

Shortcode

Postby jarederni » April 18th, 2011, 3:43 pm

I'm using the free membership level and all 4 membership levels for my site. I created custom names for these levels. When customers login, I would like their name and some other user profile information to display on the welcome page (including the membership level they elected). I have found a shortcode that works for their names: [s2Get user_field="first_name" /] However, I use the same code [s2Get user_field="first_role" /] to display their membership level and nothing appears. Could there be another field name to use for this?

Thanks
J
User avatar
jarederni
Registered User
Registered User
 
Posts: 2
Joined: April 18, 2011

Re: Shortcode

Postby Cristián Lávaque » April 19th, 2011, 1:21 am

Hi Jared.

You could try [s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" /]. WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Shortcode

Postby jarederni » April 19th, 2011, 8:50 am

Prefect! I just inserted the shortcode and it works. Thanks for the reference to find it too.

Regards,
J
User avatar
jarederni
Registered User
Registered User
 
Posts: 2
Joined: April 18, 2011

Re: Shortcode

Postby Cristián Lávaque » April 19th, 2011, 12:41 pm

Great! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron