Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,849
- How-to & Troubleshooting
- 128,862
- Creating & Extending
- 25,736
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,132
-
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