I coded it directly into the theme’s header, where the rest of the sidebar is. Should I do something else? I’m a newbie to PHP, though I know C++ to some extent.
@chouf1, I use WordPress-Bootstrap by 320press. In the circled tab, i want to display the class of the student. Also depending on the Class menus with different elements will be put in that sidebar.
How do I do this? Even if I could compare the value of the profile field it would do.
For example,
Thanks for the help but neither code is useful for me.
bp_member_profile_data( ‘field=Class’ ); returns an error stating unexpected “=”
@chouf1, your code doesn’t return anything atleast in my case. Any ideas what I did wrong? This is what I coded:
<?php
global $current_user;
$user_id = bp_get_member_user_id();
$class = xprofile_get_field_data( ‘Class’, $user_id );
echo $class;
?>