Forum Replies Created
-
In reply to: [Resolved] How To Get Notification Count? (Code)?
Hello
thanks for this, but I am not looking for customize that tool bar, we want to move that part to somewhere else on to theme though
In reply to: [Resolved] How To Get Notification Count? (Code)?many thanks for this!
We now want to remove WP top toolbar (not the question here), we then want to ask how to move this whole part to a bit under, so information could join together

is this possible?
that area has “notifications”+ “member name”+ “search” + “drop out menu
In reply to: [Resolved] How To Get Notification Count? (Code)?Hi guys
we are looking for solution to get buddypress notifications work on our theme, we know it will be shown on wordpress’s default top tool bar but we want it to show somewhere else.We are using WP 4.3 with buddypress 2.3.3, we have added these to theme’s functions.php
function bpfr_add_notification_to_page_title( $title, $original_title, $sep ) { //do not change if the user is not logged in if( ! is_user_logged_in() ) return $title; $user_id = get_current_user_id();//logged in user's id $count = bp_notifications_get_unread_notification_count( $user_id ); if( $count > 0 ) $title = sprintf( "You Have %d New Notification(s) - ", $count ); return $title; } add_filter( 'wp_title', 'bpfr_add_notification_to_page_title', 100, 3 );then we add these to theme ‘s menu location
<?php echo bp_notifications_get_unread_notification_count( bp_loggedin_user_id() ); ?>but it is showing nothing, what is the correct steps to make this work please?
thanks