Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,032
- How-to & Troubleshooting
- 129,676
- Creating & Extending
- 25,794
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,793
- Showcase
- 3,316
- Ideas
- 1,375
- Miscellaneous
- 9,181
-
Oops, my bad. I gave you the echo functions when you need the non-echoing ones. This works, I just tested it.:
if ( bp_get_the_profile_field_name() == 'color' ) {
if ( bp_get_the_profile_field_value() == 'green' )
echo '<img src="green.png" />';
}