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.

Getting a custom field in an author template

Home Forums Community Forum Getting a custom field in an author template

This topic contains 2 replies, has 2 voices. Last updated by  Simon Cooke 4 years, 10 months ago.

Topic Author Topic
Posted: Tuesday Feb 21st, 2012 at 1:13 pm #5884
Simon Cooke
Username: Simon23

Help please

losing my hair trying to work out how to retrieve and display custom profile fields in a custom author template.

Whats wrong with this

get_users () as $user;
$user = new WP_User ($user->ID);
$key="s2member_custom_fields-company_name";
$company = get_user_field ($key, $user->ID);

thanks all

joe

  • This topic was modified 4 years, 10 months ago by  Simon Cooke.

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Wednesday Feb 22nd, 2012 at 2:59 pm #6002
Raam Dev
Username: Raam
Staff Member

Hi Joe,

Please see this thread on the old forum regarding extracting s2Member Custom Field data using PHP:
http://www.primothemes.com/forums/viewtopic.php?f=4&t=15658#p48878

Posted: Wednesday Feb 22nd, 2012 at 3:37 pm #6009
Simon Cooke
Username: Simon23

Thanks – I got there in the end. as usual, simpler than I thought

Viewing 2 replies - 1 through 2 (of 2 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.