Page 1 of 1

Shortcode

PostPosted: April 18th, 2011, 3:43 pm
by jarederni
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

Re: Shortcode

PostPosted: April 19th, 2011, 1:21 am
by Cristián Lávaque
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. :)

Re: Shortcode

PostPosted: April 19th, 2011, 8:50 am
by jarederni
Prefect! I just inserted the shortcode and it works. Thanks for the reference to find it too.

Regards,
J

Re: Shortcode

PostPosted: April 19th, 2011, 12:41 pm
by Cristián Lávaque
Great! :)