-
Varun Dubey replied to the topic Display output Xprofile checkbox in the forum How-to & Troubleshooting 10 months ago
@agorafolk You can achieve this by customizing your theme or creating a custom plugin to manipulate the output of the xprofile field data.
// Assume $user_id is the ID of the user and $field_id is the ID of your checkbox field
$selected_options = bp_get_profile_field_data( array( 'field' => $field_id, 'user_id' => $user_id ) );// Split the…[Read more]
-
Varun Dubey replied to the topic xprofile date output in the forum How-to & Troubleshooting 10 months ago
@agorafolk you can use the date_i18n() function provided by WordPress, which formats the date according to your WordPress installation’s language setting.
// Assume $member_birthday contains the birthday date from the member's profile in the format '1984-06-27 00:00:00'
[Read more]
$member_birthday = '1984-06-27 00:00:00'; // Replace this with the actual…
@agorafolk
Active 9 months, 4 weeks ago