Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to display custom profile field?


CriticalNed
Participant

@criticaltodd

This one is up next on my development list, so I’ll just gratuitously BUMP this…

Is anybody aware of a way to call specific profile fields using BP functions, or is the only way to do this something like:

//get the country of the current post author. country field ID is 4.

$result = mysql_query(“SELECT value FROM wp_bp_xprofile_data WHERE user_id = ” . $current_author . ” AND field_id = ” . $country_field . ” LIMIT 1″);

$row = mysql_fetch_array($result);

$profile_field = $row;

Hmm, I may have just answered my own question…

Skip to toolbar