1. Shortcodes
  2. [gamipress_last_achievements_earned]

[gamipress_last_achievements_earned]

Display the last achievements earned by the current user or a desired user.

Preview:

Attributes:

  • type – The type of the last achievement earned. Accepts: Any slug of any achievement type.
  • current_user – Show last achievement earned of current logged in user. Accepts: yes or no Default: yes
  • user_id – Show last achievement earned earned by a specific user.
  • limit – Number of achievements to display. Default: 1
  • columns – Columns to divide achievements (only used when limit is higher than 1). Accepts: 1, 2, 3, 4, 5 or 6 Default: 1
  • columns_small – Columns to divide achievements in small screens (only used when limit is higher than 1). Accepts: 1, 2, 3, 4, 5 or 6 Default: 1
  • This shortcode accepts all attributes of [gamipress_achievement] to setup the achievement display.

Example:
[gamipress_last_achievements_earned type="badges" limit="1" columns="1"]

Was this article helpful to you? No Yes

How can we help?