Skip to:
Content
Pages
Categories
Search
Top
Bottom

field=State == New York (can't get it to work)

  • @blauweogen

    Participant

    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.
Skip to toolbar