latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

User Field – Short Code works PHP does not

Home Forums Community Forum User Field – Short Code works PHP does not

This topic contains 1 reply, has 1 voice. Last updated by  Colin Kells 4 years ago.

Topic Author Topic
Posted: Wednesday Dec 26th, 2012 at 2:01 pm #35512
Colin Kells
Username: cpufix

I have a user_field named “Selected_Role” which is a drop down list on the registration form.
The following values are in the list Subscriber, BAPaid, FLPaid, MAPaid, AMPaid.
Subscriber is the default and each Value has a description.
During registration the user_field “Selected_Role” gets set to the correct vale.

If I later want to get the value

[s2Get user_field="Selected_Role" /] returns the correct value.

The following PHP codes always return Subscriber.
php echo get_user_field(‘Selected_Role’);
or
php get_user_field(‘Selected_Role’);
or
$Selected_Role = get_user_field (‘Selected_Role’) ;

Exec PHP is installed and each level has Execute PHP enabled.

So what am I missing ????

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Wednesday Dec 26th, 2012 at 6:47 pm #35527
Colin Kells
Username: cpufix

Resolved

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.