• Resolved ShMk

    (@shmk)


    Hello,
    I have 2 questions related to how retrieve data from a custom profile field, specifically from the “Custom Taxonomy Multiselector” type:
    1. are there any filter to edit the display of the field when using “bp_get_profile_field_data” or similar functions?
    2. how can I retrieve the selected data as a raw array instead of a styled html?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Thank you for asking.

    1. I will suggest using “xprofile_get_field_data” as it applies to all fields.

    2. Please use

    
    $data     = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field_id, $user_id ) );
    
    

    If you want to use field name instead of the field id, Please use

    
    $field_id = xprofile_get_field_id_from_name("Actual Field Name...");// please change the name.
    
    

    Regards
    Brajesh

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Marking resolved. Please feel free to reopen if you need any further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom field display’ is closed to new replies.