Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,008
- How-to & Troubleshooting
- 129,532
- Creating & Extending
- 25,786
- Requests & Feedback
- 9,496
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,169
-
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