Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Display xProfile field groups

@pstidsen

Participant

Now the function is runned, but no fields are shown. My code is:

//Prints xProfile
function PrintKontaktinformationer() {
	// we need the user_id first (mandatory outside a loop)
	$user_id = bp_displayed_user_id();
	// now we fetch the field data (separate field id's by comma)
	$my_field = xprofile_get_field_data('10, 9, 1, 11, 12, 13, 14, 15', $user_id);
	// we built the output
	echo '<div class="authorinfo">TEST'. $my_field . '</div>';
}
// the new hook
add_action( 'show_PrintKontaktinformationer', 'PrintKontaktinformationer' );
Skip to toolbar