Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
How to Install and Use the Leaderboard Add-on for AffiliateWP
With the Leaderboard add-on for AffiliateWP you can show a leaderboard of your top affiliates. Show any number of affiliates and include their referrals, earnings and visits.
In this article, we’ll show you how to install and set up the Leaderboard add-on for AffiliateWP.
Before we get started, be sure to install and activate AffiliateWP on your WordPress site.
Once you’ve got AffiliateWP installed and your license is verified, you’ll be able to quickly install and activate the Affiliate Landing Pages add-on.
After installing the Leaderboard add-on, there are no further steps required.
Once installed and activated, the Leaderboard add-on provides a widget for showing an affiliate leaderboard in your sidebar, as well as the [affiliate_leaderboard] shortcode so that you can include the leaderboard on any WordPress page. Below are options available for the shortcode.
The default shortcode with no additional parameters will show 10 affiliates, ordered by referrals.
The number parameter can be used to control how many affiliates are shown in the leaderboard:
The referrals parameter can be used to show an affiliate’s referrals:
Note: Only referrals with
status values equal to Paid are included in the referral counts.
The earnings parameter can be used to show an affiliate’s Paid earnings:
The visits parameter can be used to show an affiliate’s visits:
You can also list all 3 (referrals, paid earnings, visits) like this:
[[affiliate_leaderboard referrals=”yes” earnings=”yes” visits=”yes”]]
The orderby parameter can be added to order the leaderboard by either referrals, earnings or visits:
You can combine parameters as well. For example, this shortcode would show the referrals count for each affiliate and order them by the referral count amount:
[[affiliate_leaderboard referrals=”yes” orderby=”referrals”]]