1. Documentation
  2. Shortcodes
  3. [gamipress_rank]

[gamipress_rank]

Render a single rank.

Preview:

Attributes:

  • id – The ID of the rank to render.
  • title – Display the rank title. Default: yes
  • title_size – The rank title size. Accepts: h1, h2, h3, h4, h5, h6 or p Default: h2
  • link – Add a link on rank title to the rank page. Default: yes
  • thumbnail – Display the rank featured image. Default: yes
  • thumbnail_size – The rank featured image size in pixels. Leave empty to use the image size from settings.
  • excerpt – Display the rank short description. Default: yes
  • requirements – Display the rank requirements. Default: yes
  • toggle – Display the rank requirements toggle. Default: yes
  • heading – Display the rank requirements heading text. Accepts: yes or no Default: yes
  • heading_size – The rank requirements heading text size. Accepts: h1, h2, h3, h4, h5, h6 or p Default: h4
  • unlock_button – Display the “Unlock using points” (on ranks where unlock with points is allowed). Default: yes
  • earners – Display a list of users that has earned the rank. Default: no
  • earners_limit – Set the maximum number of earners to show (0 for no maximum). Default: 0
  • layout – Layout to show the rank. Accepts: left, top, right, bottom or none Default: left
  • align – Alignment to show the rank. Accepts: none, left, center, right or justify Default: none

Example:
[gamipress_rank id="1" title="yes" link="yes" thumbnail="yes" excerpt="yes" requirements="yes" toggle="yes" earners="no" layout="left" align="none"]

How can we help?