1. Documentation
  2. Shortcodes
  3. [gamipress_ranks]

[gamipress_ranks]

Output a list of ranks.

Attributes:

  • type – Single or comma-separated list of rank type(s) to display. Accepts: all or any slug of any rank type. Default: all
  • title – Display ranks title. Default: yes
  • link – Add a link on rank title to the rank page. Default: yes
  • thumbnail – Display ranks featured images. Default: yes
  • excerpt – Display ranks short descriptions. Default: yes
  • requirements – Display ranks requirements. Default: yes
  • toggle – Display the rank requirements toggle. Default: yes
  • 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
  • columns – Columns to divide ranks. Accepts: 1, 2, 3, 4, 5 or 6 Default: 1
  • orderby – Parameter to use for sorting. Accepts: priority, ID, title, date, modified, rand Default: priority
  • order – Sort order. Accepts: ASC, DESC Default: DESC
  • current_user – Show current ranks of current logged in user. Accepts: yes, no Default: no
  • user_id – Show only the current ranks type by a specific user.
  • include – Comma-separated list of specific rank IDs to include.
  • exclude – Comma-separated list of specific rank IDs to exclude.
  • layout – Layout to show the rank. Accepts: left, top, right, bottom or none Default: left
  • wpms – Show ranks from all network sites.

Example: [gamipress_ranks type="all" title="yes" link="yes" thumbnail="yes" excerpt="yes" requirements="yes" earners="yes" layout="left" orderby="priority" order="DESC" user_id="1" include="1,2,3" exclude="4,5,6" wpms="no"]

Was this article helpful to you? Yes No

How can we help?