Skip to:
Content
Pages
Categories
Search
Top
Bottom

Accessing profile data in the member loop – checkbox?


  • zoltok
    Participant

    @zoltok

    Hi there,

    I’m in the process of modifying the member loop for the member directory to show specific member fields. Everything is going well for text fields, but now I’d like to show a small badge if the user has identified themselves as a member of our service. In the profile, I’ve created a checkbox for people to identify themselves as subscribers. So, I’d like to test if that box is checked, and if it is, display a small badge.

    How would I do this? I’m using “bp_member_profile_data( ‘field=the field name’ );” for the text fields without any difficulties, but not sure of the syntax needed to test for the checkbox. All my attempts don’t return anything.

    TIA!

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Accessing profile data in the member loop – checkbox?’ is closed to new replies.
Skip to toolbar