Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,706
- How-to & Troubleshooting
- 128,406
- Creating & Extending
- 25,688
- Requests & Feedback
- 9,413
- Third Party Plugins
- 9,757
- Showcase
- 3,317
- Ideas
- 1,354
- Miscellaneous
- 8,884
-
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" />';
}
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS