Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,859
- How-to & Troubleshooting
- 128,906
- Creating & Extending
- 25,742
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,389
- Miscellaneous
- 9,134
-
Here’s what I use:
<?php
global $bp;
$hmag_inbox_count = messages_get_unread_count();
if ($hmag_inbox_count > ‘9’) {
$hmag_inbox_count = ‘9+’;
}
echo ‘<span class=”your-style”>’.$hmag_inbox_count.'</span>’;
?>
Displays a number for # of unread. If the count is greater then 9, it displays 9+
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS