i4w_leaderboard

Usage:

This shortcode displays the specified affiliate leaderboard.

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

Affiliate Leaderboards

Parameters:

idThe id of the affiliate leaderboard to be displayed.
Default: none.
Required: yes.

To ensure compatibility with the various page builders we recommend that no quote delimiters are used to specify the id parameter.

Quotes are not needed for this shortcode as there can never be any spaces in the id.

Validity:

This shortcode is evaluated for any type of visitor.

Please be aware that if the affiliate leaderboard specified by the id is not active or empty this shortcode will not be evaluated and will not display/include any content.

Also if the affiliate leaderboard is not available from the cache nothing will be shown. In this case you should force a recalculation of the affiliate leaderboards please refer to Calculating Affiliate Leaderboards.

Conditional Branching:

[ELSE_leaderboard] conditional branching is supported.

Nesting:

Shortcode nesting is not supported.

Formatting:

The leaderboard can be styled using CSS using the classes shown below:

<div class="mbr-leaderboard">
<div class="mbr-leaderboard-row mbr-leaderboard-head">
<span class="mbr-leaderboard-pos">Pos</span>
<span class="mbr-leaderboard-name">Affiliate Partner</span>
<span class="mbr-leaderboard-val">Sales</span>
</div>
<div class="mbr-leaderboard-row">
<span class="mbr-leaderboard-pos">#1</span>
<span class="mbr-leaderboard-name">ResponseFlow</span>
<span class="mbr-leaderboard-val">543</span>
</div>
<div class="mbr-leaderboard-row">
<span class="mbr-leaderboard-pos">#2</span>
<span class="mbr-leaderboard-name">Keen</span>
<span class="mbr-leaderboard-val">2</span>
</div>
</div><pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
<p>The default <strong>leaderboard</strong> CSS also uses the following CSS method to apply a different background to each odd and even row:</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p><a href="https://www.w3schools.com/cssref/sel_nth-child.asp">https://www.w3schools.com/cssref/sel_nth-child.asp</a></p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Examples:</h2>
<!-- /wp:heading -->

<!-- wp:list {"ordered":true} -->
<ol><li>Display the <strong>affiliate leaderboard</strong> with id 9291:<pre><code>[i4w_leaderboard id=9291]

API:

There is no API function equivalent for this shortcode.