-
mistwist posted on the forum topic conditional statement based on a returned field value outside of loop in the group How-To and Troubleshooting: 14 years, 1 month ago
I thought I had tried that. 🙁
Thank you very much, works perfectly now!
-
mistwist started the forum topic conditional statement based on a returned field value outside of loop in the group How-To and Troubleshooting: 14 years, 1 month ago
I need to make a conditional statement based on a returned field value OUTSIDE of the profile loop.
If I do it like this:
if (bp_profile_field_data(‘field=gender’)) == “female”{
do this…
}it returns the value of the field only and not the “do this…” part
Suggestions?
-
mistwist started the forum topic bp_profile_field_data() bug or am I just doing it wrong in the group How-To and Troubleshooting: 14 years, 1 month ago
It was my understanding that BP converted arrays into viewable data. However when I use bp_profile_field_data(‘field=1068’) (which on registration is a multi selection box) it returns “Array” when called from the profile page. All other occourences of bp_profile_field_data(‘field=??’) work correctly but they are not trying to return Arrays.
Any…[Read more]
-
mistwist joined the group How-To and Troubleshooting 14 years, 1 month ago
@mistwist
Not recently active