Shortcodes work (or will.. soon!) if an email address or WordPress username is specified. If the username is specified, the plugin looks for the user's email address. Email addresses are what is used to pull a list of badges from Mozilla. But let's say I wanted to include the [openbadges] shortcode on an author page, which is specific to an individual and dynamic?
I'd like to automatically detect if a shortcode is being called on an author page, and if so retrieve the author email to display badges. Yes, it's possible to do this manually, but this approach will keep the shortcode syntax concise.
Shortcodes work (or will.. soon!) if an email address or WordPress username is specified. If the username is specified, the plugin looks for the user's email address. Email addresses are what is used to pull a list of badges from Mozilla. But let's say I wanted to include the [openbadges] shortcode on an author page, which is specific to an individual and dynamic?
I'd like to automatically detect if a shortcode is being called on an author page, and if so retrieve the author email to display badges. Yes, it's possible to do this manually, but this approach will keep the shortcode syntax concise.