I’m building a community site that uses buddy press and WpChats, along with a bbpress forum.
I’m trying to find a way to show notifications in a text widget that says Welcome back User, then underneath it have buttons to MESSAGE (WpChats), DISCUSS (BBPress) and PROFILE (Buddy Press profile page).
I would love to be able to show a little circular modal next to MESSAGE that indicates how many new messages I’ve received.
Is it possible to create a shortcode that displays just the number of notifications?
First off, I am very sorry for the delay getting back to you; I accidentally deleted all my network sites and couldn’t do anything with a corrupt backup lol so I spent the past days getting all of them online. Very sorry.
Please first add the following code to your child theme’s functions file or with a custom plugin (to enable the custom shortcodes):