Code Stopped Working After Update
-
I had been using this code to show profile fields on a member’s card in the directory. It was working perfectly until the last BuddyPress update. After the update it disappeared. (even with all other plugins disabled and on the Twenty-Twenty theme)
Is there a fix for this or should I change something in my code?
function add_city_to_members_loop() {
$field_content = bp_get_member_profile_data( ‘field=City’ );
if( $field_content != false )
echo ” – ” . $field_content;
}
add_action( ‘bp_directory_members_item’, ‘add_city_to_members_loop’ );
- You must be logged in to reply to this topic.