Skip to content

i4w_leaderboard

This shortcode displays the specified affiliate leaderboard.

The purpose, definition, and use of affiliate leaderboards is explained in detail here: Affiliate Leaderboards

[ELSE_leaderboard] conditional branching is supported.

Shortcode nesting is NOT supported.

ParameterDescriptionDefaultRequired
idThe id of the affiliate leaderboard to be displayed.noneYes
Shortcode
[i4w_leaderboard id=9291]

With ELSE clause:

Shortcode
[i4w_leaderboard id=9291]
Leaderboard content here
[ELSE_leaderboard]
Leaderboard not available
[/i4w_leaderboard]

The leaderboard can be styled using CSS with the following classes:

  • mbr-leaderboard - Main container
  • mbr-leaderboard-row - Each row
  • mbr-leaderboard-head - Header row
  • mbr-leaderboard-pos - Position column
  • mbr-leaderboard-name - Name column
  • mbr-leaderboard-val - Value column