Skip to:
Content
Pages
Categories
Search
Top
Bottom

Retreive checkbox data, maybe_serialize?

  • Avatar of Danny Albeck
    Danny Albeck
    Participant

    @dalbeck

    Hello,

    I am really struggling with trying to display info on a users profile that comes from checkbox fields in the registration process using Gravity forms registration addon and xprofile fields.

    I have tried numerous code samples none of them working:

    http://pastebin.com/iuv3FZVE

    and

    http://pastebin.com/up6cXnBg

    Was looking around on Google and found the function: maybe_serialize … not sure if this is something I should be using or not.

    Any help would be greatly appreciated, I think I have invested close to 6 hours on just trying to call this data and output on the page, and found many requests online for similar scenario with no working answers for BP 1.6.2 / WP 3.5

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    bp profile field data only works inside members loop

    Use outside loop
    xprofile_get_field_data()

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Or

    bp_get_profile_field_data( array(‘user_id’=>$user_id,’field’=>$field ));

    Avatar of Danny Albeck
    Danny Albeck
    Participant

    @dalbeck

    modemlooper,

    Would this be correct?

    `$user_id,’profile_experience’=>$profile_experience )); ?>`

    My field name is profile_experience. I am trying to call this in my member-header.php file… thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.