Buddypress dynamic profile field

This will get your job done. or you may like to use BuddyPress Xprofile Custom Fields Type plugin. //Adding a metabox in user extended profile page function bp_user_meta_box() { add_meta_box( ‘metabox_id’, __( ‘Metabox Title’, ‘buddypress’ ), ‘bp_user_inner_meta_box’, // function that displays the contents of the meta box get_current_screen()->id ); } add_action( ‘bp_members_admin_user_metaboxes’, ‘bp_user_meta_box’); function bp_user_inner_meta_box() … Read more

Can’t get buddypress notifications in front-end; why do I get this error?

use this: if ( !function_exists( ‘bp_core_get_notifications_for_user’ ) ) { require_once ‘/wp-content/plugins/buddypress/bp-core/deprecated/1.9.php’; } function cg_current_user_notification_count() { $notifications = bp_core_get_notifications_for_user(bp_loggedin_user_id(), ‘object’); $count = !empty($notifications) ? count($notifications) : 0; echo $count;}