field=State == New York (can't get it to work)
-
I am using this if statement. It works for states that do not have a space between words, but does not work for States like New York. Does anyone know how to get it to work?
if ( bp_get_member_profile_data( ‘field=State’ ) == ‘New York’ ) :
BP 1.5.6
wp 3.5.2
I’m using Exec-PHP and have the code in a page if that makes any difference. Everything else I have used works fine.
- The topic ‘field=State == New York (can't get it to work)’ is closed to new replies.