Skip to:
Content
Pages
Categories
Search
Top
Bottom

xprofile calling radio options


  • Nirok
    Participant

    @nirok

    Don’t know if this is the best way to do this but I have an xprofile field which is a radio option. I wanted to display certain profiles in certain positions on the members directory page based on 4 radio options: Fashion, Lifestyle, Professional and Cuisine. Depending which option a user chose it would make there profile show up there. I’ve just done a quick test seeing if I can make a profile display an email address based on a user selecting the option “Professional”. It seems to work and i was wondering if I could take this same technique and just apply it to displaying users profiles in different areas around the members directory page. For instance make differen’t css boxes for “fashion” Professional” etc etc… and just echo them according to the different radio settings. I’m very new to php but could someone let me know issues with what I have below Thanks

    $location= xprofile_get_field_data( “Shop Type” ,bp_get_member_user_id());
    if ($location== ‘Professional’) echo xprofile_get_field_data( “Email” ,bp_get_member_user_id());

  • The topic ‘xprofile calling radio options’ is closed to new replies.
Skip to toolbar