Hi there,
I'm trying to figure out how to call, and display custom field data in the user module.
I've the above with no success. Using the unique key in quotes returns a php error:
I've tried creating a new gender custom field with a drop down for male and female and then used:
GENDER_2 being the unique key I assigned to the custom field. All it returns is
Address was just an example, I'm adding MANY different extra fields and I need a way to display the data that the user supplies during the registration process inside a module.
Could anyone offer some insights on how I can achieve this?
Example of what I'm trying to achieve:
Row of 5 recent users. I need to display their Name and Avatar (got that part figured out), I also need to display data from customfield1, customfield2 and customfield3 whether the data comes from a radio field, text field, drop down, etc.
I'm trying to figure out how to call, and display custom field data in the user module.
<?php echo $user->getFieldValue( 'ADDRESS' ); ?>
I've the above with no success. Using the unique key in quotes returns a php error:
Catchable fatal error: Object of class SocialFieldsUserAddressObject could not be converted to string
I've tried creating a new gender custom field with a drop down for male and female and then used:
<?php echo $user->getFieldValue( 'GENDER_2' ); ?>
GENDER_2 being the unique key I assigned to the custom field. All it returns is
SocialTableFieldOptions
Address was just an example, I'm adding MANY different extra fields and I need a way to display the data that the user supplies during the registration process inside a module.
Could anyone offer some insights on how I can achieve this?
Example of what I'm trying to achieve:
Row of 5 recent users. I need to display their Name and Avatar (got that part figured out), I also need to display data from customfield1, customfield2 and customfield3 whether the data comes from a radio field, text field, drop down, etc.