Output a list of user earnings.
Preview:
Attributes:
- current_user – Show only earned items of the current logged in user. Default:
yes
- user_id – Show only earned items by a specific user. Leave blank to show earned items of all users.
- force_responsive – Force to display the earnings table with the responsive style even if is displayed in a big screen. Default:
no
- limit – Number of items to display. Default:
10
- pagination – Show pagination links to navigate through all earned items. Default:
yes
- order – Sort order. Accepts:
DESC
,ASC
Default:DESC
- include – Comma-separated list of specific earnings IDs to include.
- exclude – Comma-separated list of specific earnings IDs to exclude.
- points – Show points earned and deducted. Default:
yes
- points_types – Single or comma-separated list of points type(s) to display. Accepts:
all
or any slug of any points type. Default:all
- awards – Show points awarded. Default:
yes
- deducts – Show points deducted. Default:
yes
- achievements – Show achievements earned. Default:
yes
- achievement_types – Single or comma-separated list of achievements type(s) to display. Accepts:
all
or any slug of any achievement type. Default:all
- steps – Show steps completed. Default:
yes
- achievements_without_points – Show achievements that do not award points. Default:
yes
- ranks – Show ranks reached. Default:
yes
- rank_types – Single or comma-separated list of ranks type(s) to display. Accepts:
all
or any slug of any rank type. Default:all
- rank_requirements – Show rank requirements completed. Default:
yes
Example:
[gamipress_earnings current_user="yes" force_responsive="no" limit="10" pagination="yes" order="DESC" points="yes" points_types="all" awards="yes" deducts="yes" achievements="yes" achievement_types="all" steps="yes" ranks="yes" rank_types="all" rank_requirements="yes"]
Showing all users earnings
[gamipress_earnings]
includes the ability to show all user earnings. The unique thing you need is set the current_user
attribute to no
.
Example:
[gamipress_earnings current_user="no"]