Display icon in members-loop.php from profile field selection
-
In the member directory I want to add an icon to the user profiles that distinguishes between types of members.
Basically I have a profile field drop-down with two options. If they select option “A” I want icon “A” to be displayed on their profile. And then the same idea if they select option “B”.
I found this thread however none of these solutions worked for me: Profile Field adds Award
Here’s the code I have now in my members-loop.php, although nothing is showing up:
<div class="role-icon"> <?php if ( bp_get_the_profile_field_name() == 'A or B?' ) { global $field; if ( bp_get_the_profile_field_value() == 'A' ) echo '</Aicon.png />'; } ?> </div>
- The topic ‘Display icon in members-loop.php from profile field selection’ is closed to new replies.