Buddypress Add unserialized Profile Fields in Members Loop [closed]

I believe xprofile_get_field_data is unserializing the data for you, but it is still in an array. xprofile_get_field_data can return an array or a comma-separated string. xprofile_get_field_data( $field, $user_id = 0, $multi_format=”array” ) @param string $multi_format How should array data be returned? ‘comma’ if you want a comma-separated string ‘array’ if you want an array

Forcing WordPress to work differently

Yeah, the multiple user under one account is not stock with WordPress. You would essentially have to reprogram a lot of stuff to get everything you are wanting, and hacking the core is a no-no, as all updates would just over-write it. So you wouldn’t be able to update it, or have a lot of … Read more

Best way to change profile page

What about just targeting with CSS? tr.user-nickname-wrap { display: none; } Of course the fields will still be in the source but the CSS targeting will be faster than JS. You can load your WP Admin CSS this way: function wse_183286_profile_admin_css() { $screen_id = isset( get_current_screen()->id ) ? get_current_screen()->id : null; if ( ‘profile’ === … Read more

Creating user relationships

WordPress does provide you with the ability to save meta data for users, so you could just store the agent’s user id in a meta field of his subscribers, like update_user_meta( $user_id, “agent”, $agent_id ). You can then query those users with the WP_User_Query’s meta_query, e.g. $agents_subscribers = new WP_User_Query( array( ‘meta_key’ => ‘agent’, ‘meta_value’ … Read more