@msolution
5 years, 2 months ago
i agree, this is better, thanks 🙂
For anyone facing similar issue, this is how i tackled it!
$my_dept = xprofile_get_field_data( $field_id, get_current_user_id(), 'array' ); if( empty( $my_dept ) ) { $my_dept = $wpdb->get_var( $wpdb->prepare( 'SELECT value FROM '.$wpdb->prefix.'bp_xprofile_data WHERE field_id = %d AND user_id IN ('.get_current_user_id().')', $field_id ) ); }
Hope this helps!
M.
5 years, 4 months ago
Thanks @shanebp ,
will contact theme dev
Thanks!