Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,007
- How-to & Troubleshooting
- 129,527
- Creating & Extending
- 25,786
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,169
-
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