Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Trying to do a notification check

I assume you are having issues getting the count of unread notifications a user has. Try this:

if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>

<span><?php echo count($notifications) ?></span>

<?php

}

Skip to toolbar