Core Shortcodes

The following shortcodes are available by default without any add-ons being enabled.

[mycred_history]

Shows the points history either for all users or for the user viewing the shortcode.

View Documentation

[mycred_leaderboard]

Shows a leaderboard based on either balances or points history.

View Documentation

[mycred_my_ranking]

Shows a users position in a leaderboard based on either balances or points history.

View Documentation

[mycred_my_balance]

Shows either a specific users balance or the current users balance.

View Documentation

[mycred_give]

Used to give points to the user that views this shortcode.

View Documentation

[mycred_send]

Creates a button that transfers x amount of points to a pre-set recipient.

View Documentation

[mycred_total_balance]

Shows the total balance of a specific user or the current user.

View Documentation

[mycred_exchange]

Shows an exchange form for exchanges between two point types.

View Documentation

[mycred_hook_table]

Shows a table with all the different way users can earn points via hooks.

View Documentation

[mycred_link]

Shows a link that grants points based on your “Points for clicking on links” hook setup.

View Documentation

[mycred_affiliate_id]

Shows the referral ID of the current user.

View Documentation

[mycred_affiliate_link]

Shows a link with an affiliate ID attached when using the “Points for referrals” hook.

View Documentation

[mycred_total_points]

Show total amount of points in circulation or total awarded / deducted by reference.

View Documentation

[mycred_best_user]

Show the user with most / least points based on balance or point history.

View Documentation

[mycred_show_if]

Wrap this shortcode around content you only want to show to users that have a certain amount of points and / or rank (if used).

View Documentation

[mycred_hide_if]

Wrap this shortcode around content you want to hide from users that have a certain amount of points and / or rank (if used).

View Documentation

[mycred_total_since]

Shows the total amount of points a user has gained since a particular time e.g. this today.

View Documentation

[mycred_video]

Embeds a YouTube video that grants points based on your “Points for viewing videos” hook setup.

View Documentation

Add-on Shortcodes

The following shortcodes are available via the built in add-ons:

[mycred_badges]

Show all published badges.

View Documentation

[mycred_my_badges]

Shows the current users badges.

View Documentation

[mycred_buy]

Allows you to sell a specific amount of points using a specific gateway.

View Documentation

[mycred_buy_form]

Shows the point purchase form.

View Documentation

[mycred_buy_pending]

Shows the current users pending point purchase requests.

View Documentation

[mycred_load_coupon]

Allows users to redeem myCRED coupons.

View Documentation

[mycred_email_subscriptions]

Shows the subscriptions options which allows users to select the email notifications they wish to receive.

View Documentation

[mycred_my_rank]

Shows the current users rank.

View Documentation

[mycred_users_of_rank]

Shows a list of users of a given rank.

View Documentation

[mycred_users_of_all_ranks]

Shows a list of users for all ranks.

View Documentation

[mycred_sell_this]

Wrapped around content you want to sell.

View Documentation

[mycred_sales_history]

Shows a list of content the current user has purchased.

View Documentation

[mycred_content_sale_count]

Show the number of times the content has been purchased for a given post.

View Documentation

[mycred_content_buyer_count]

Shows the number of unique users that has purchased a given post.

View Documentation

[mycred_content_buyer_avatars]

Shows a list of avatars of users who have purchased a given post.

View Documentation

[mycred_transfer]

Renders the transfer form.

View Documentation

Last edited June 24, 2016