Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,844
- How-to & Troubleshooting
- 128,831
- Creating & Extending
- 25,735
- Requests & Feedback
- 9,442
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,128
-
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
}
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS