mycred_badges

Codex / mycred/badge / Shortcodes / mycred_badges

Description

This shortcode allows you to display all published badges. Note that this shortcode will show all badges and not just the badges a user has earned. To show a users earned badges, please use the mycred_my_badges shortcode instead.

Requires the Badges add-on to be enabled.

Available since version 1.5

Shortcode Attributes

Attribute Type Required Default Description
width int No MYCRED_BADGE_WIDTH The badge image width to use.
height int No MYCRED_BADGE_HEIGHT The badge image height to use.

CSS Styling

ul.mycred-users-badges { }
ul.mycred-users-badges div.the-badge { }

// Header (if set to show)
ul.mycred-users-badges div.the-badge h3 { }

// Requirements (if set to show)
ul.mycred-users-badges div.the-badge p { }

Example

Example 1: Default usage:

[mycred_badges]

Last edited June 23, 2016