Support » Plugin: Match me for BuddyPress » Is it possible to print the field name if it is equal ??

  • Resolved canimjain

    (@canimjain)


    Hi, I am also looking for some code inside it,

    As it is picking field 1 of logged in user and field 1 of displayed user and then comparing the value.
    Is it possible to print the field name if it is equal ??

    $field1 = xprofile_get_field_data($fd_id, $user_logged_in);
    $field2 = xprofile_get_field_data($fd_id, $user_displayed);
    if ( $field1 && $field2 )
    {
    $intersect = array_intersect((array)$field1,(array)$field2);
    ???

    Thank you

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is it possible to print the field name if it is equal ??’ is closed to new replies.