Chapters

Category: Shortcodes

All myCRED shortcodes available since later version.

mycred_affiliate_id

Used by the Point for referrals hook, this shortcode will return the current logged in users referral ID.

Continue Reading

mycred_affiliate_link

Used by the Point for referrals hook, this shortcode will append the current users referral link to a given URL. If no URL is given, the current page's URL is used.

Continue Reading

mycred_all_scratch_cards

This shortcode will render all active scratch card sets that you currently have installed on your website. Logged in users can then buy a card via this shortcode. Unlike the mycred_scratch_cards shortcode which will only show one particular card set, this shortcode will show multiple.

Continue Reading

mycred_badges

This shortcode allows you to display all published badges. Note that this shortcode will show all badges and not just the badges a user has earned. To show a users earned badges, please use the mycred_my_badges shortcode instead.

Continue Reading

mycred_badges_list

This shortcode allows you to display all published badges that have ever existed on your website and define them under their respective achievement types.

Continue Reading

mycred_badges_progress

Description This custom shortcode allows you to show a progress bar for your badges for current user . You can select the colors to use, if the progress bar should be animated and also there is individual progressbar for badge requirement for the users current badge under the progress bar. You can also manually give

Continue Reading

mycred_best_user

This shortcode allows you to present the “best” user according to their total accumulated balance or by one or more references. The shortcode by default shows the users name and avatar but this can be customized to show the details you want.

Continue Reading

mycred_buy

This shortcode will generate an anchor element for buying creds according to given attributes. mycred_buy is the little brother of mycred_buy_form allowing for very simple, straight forward purchase link to a specific payment gateway.

Continue Reading

mycred_buy_form

This shortcode will generate a html form for purchasing creds. mycred_buy_form offers far more options then the mycred_buy shortcode.

Continue Reading

mycred_buy_pending

This shortcode allows you to show your users their currently pending buyCRED purchases. Pending purchases occur when a user has not selected to cancel a payment or if a payment was unsuccessful. Users can view each transaction, select to cancel it or select to attempt a new payment.

Continue Reading

mycred_cashcred

This shortcode will generate cashCred’s payment form on the front-end. The following shortcode attributes allow the admin to add payment gateway(s), point types(s), and messages for insufficient funds and excluded users.

Continue Reading

mycred_chart_balance_history

This shortcode will render the total amount of points a specific user has gained / lost on a daily/weekly/monthly/yearly basis. Uses Chart.js 2.7.0

Continue Reading

mycred_chart_circulation

This shortcode will render charts based on the amount of points that currently exists amongst your users. The chart is segmented if you have more than one point type setup. Uses Chart.js 2.7.0

Continue Reading

mycred_chart_gain_loss

This shortcode will render charts based on the amount of points that has been given to users vs. the total amount taken for a particular point type. Uses Chart.js 2.7.0

Continue Reading

mycred_chart_history

This shortcode will render the average amount of points that has been awarded on your website for a given period. You can select how far back the chart should go in days, weeks, months or years. Uses Chart.js 2.7.0

Continue Reading

mycred_chart_instance_history

This shortcode will render the total amount of points your users has gained / lost on a daily/weekly/monthly/yearly basis. Uses Chart.js 2.7.0

Continue Reading

mycred_chart_top_balances

This shortcode will render a list of balances ordered by size. Uses Chart.js 2.7.0

Continue Reading

mycred_chart_top_instances

This shortcode will render a list of the most common ways your users gain / spend points on your site. These results are based on references. Uses Chart.js 2.7.0

Continue Reading

mycred_content_buyer_avatars

This shortcode allows you to show the avatars of buyers of the content.

Continue Reading

mycred_content_buyer_count

This shortcode renders the total number of users that have purchased the content. Must be used inside the loop, either in the content field or in your theme’s template files.

Continue Reading

mycred_content_sale_count

This shortcode renders the total number of times the content has been purchased. Must be used inside the loop, either in the content field or in your theme’s template files.

Continue Reading

mycred_email_subscriptions

This shortcode allows your users to unsubscribe to any email notifications you have setup that are sent to the user. Notices sent to admins can not be unsubscribed!

Continue Reading

mycred_exchange

This shortcode allows your users to exchange one particular point type for another based on an exchange rate that you set for the shortcode. You can use the shortcode multiple times to allow exchanges between multiple types but exchanges can only be done in one direction per shortcode.

Continue Reading

mycred_give

This shortcode allows you to give your users points when this shortcode is rendered. These points are created “out of thin air and not from a specific account / user. You can insert this in page/post content or in a template file.

Continue Reading

mycred_hide_if

This shortcode allows you to hide parts of your content for those who fulfil the requirements you set. This shortcode is the opposite of the mycred_show_if shortcode. You can set a balance requirement, rank requirement (if the Ranks add-on is enabled) or a reference count.

Continue Reading

mycred_history

This shortcode allows you to show your log in the front end. You can select to show all log entries or show a specific users log entries. Perfect for a “History” page for your users if you do not allow them into the admin area.

Continue Reading

mycred_hook_table

This shortcode will generate a table where all enabled hooks for a particular point type is listed. You can use this to show how your users can earn points based on how you setup your hooks.

Continue Reading

mycred_leaderboard

This shortcode allows you to create leaderboards that are based on either your users current / total balances or based on events in the log, e.g. a leaderboard showing who gained most points from approved comment or published content.

Continue Reading

mycred_leaderboard_position shortcode

Description This shortcode allows you to show a given user or the current user’s position in a particular leaderboard. Replaces the mycred_my_ranking shortcode Shortcode Attributes Attribute Type Required Default Description user_id STRING No current Option to show the position of a particular user in the leaderboard. Accepts “current” for current user or a user ID. […]

Continue Reading

mycred_link

This shortcode allows you to award or deduct points from the current user when their click on a link. This shortcode will always generate a link, even if the user viewing it has already clicked on it / reached their limit or if the shortcode is viewed by a user that is logged out. However no points will be paid out unless the user is logged in, are not excluded and have not yet reached the limit you might have set for the “Points for clicking on links” hook.

Continue Reading

mycred_list_ranks

This shortcode allows you to list all ranks with the point requirements and / or the members count for each rank. You can customize how each row is presented by wrapig the shortcode around your template.

Continue Reading

mycred_load_coupon

This shortcode allows your users to redeem coupons you created using the Coupons add-on.

Continue Reading

mycred_my_badges

This shortcode will show the user who is viewing it their earned badges. This shortcode will not show all badges no matter if a user has earned them or not. To show all badges, please use the mycred_badges shortcode instead.

Continue Reading

mycred_my_balance

This shortcode allows you to show the balance of the user viewing the shortcode or a specific user. By default, the balance is displayed formatted with a wrapping element, however these can be disabled and you can show a balance inline without any formatting.

Continue Reading

mycred_my_balance_converted

This shortcode will convert the total amount of points your users has gained / lost into specified currency.

Continue Reading

mycred_my_rank

This shortcode allows you to show the rank title or logo of the user viewing the shortcode. Will not show anything if viewed by someone who is not logged in.

Continue Reading

mycred_my_ranking

This shortcode allows you to show a given users or the current users position in a particular leaderboard. Nothing will be returned if the user viewing the shortcode is not logged in

Continue Reading

mycred_my_ranks

This shortcode allows you to show all ranks a user currently has. Note that this is only usable when you have ranks for multiple point types.

Continue Reading

mycred_my_ranks_progress

This custom shortcode allows you to show a progress bar for your users current rank. You can select the colors to use, if the progress bar should be animated and to show the minimum and maximum rank requirement for the users current rank under the progress bar.

Continue Reading

mycred_my_transfer_fee

This shortcode allows you to show a users transfer fee when using the Transfer Plus plugin. You can select to show the fee for either the current user viewing the shortcode or a specific user’s fee.

Continue Reading

mycred_paymentwall

This shortcode renders the Paymentwall widget you have set to use with the buyCRED add-on. Please note that this shortcode can not be used until your website has been approved by Paymentwall! While your website is pending approved, the shortcode will not work.

Continue Reading

mycred_pending_log

This shortcode allows the user viewing the shortcode to send a pre-set amount of points under a specific reference to a pre-selected user. Basically this is a very very basic transfer shortcode where the amount, recipient and log template is already set.

Continue Reading

mycred_pending_transfers

This shortcode will render a table listing all the pending incoming our outgoing transfers for the user viewing the shortcode.

Continue Reading

mycred_rank_progress

This custom shortcode allows you to show a progress bar for your users current rang. You can select the colors to use, if the progress bar should be animated and to show the minimum and maximum rank requirement for the users current rank under the progress bar.

Continue Reading

mycred_referral_stats

The mycred_referral_stats shortcode is associated with the referral hook which displays the total count of referred visitors/sign ups users.

Continue Reading

mycred_sales_history

This shortcode will render a users content purchase history via the Sell Content add-on. As of version 1.7 the shortcode will render purchases in a boostrap ready table. You can select to filter results based on point type, set the number of entries you want to show and set the order.

Continue Reading

mycred_sell_this

By default, the Sell Content add-on sells access to the entire post content field, but this shortcode allows you to sell just parts of the content, leaving the rest available for everyone to see.

Continue Reading

mycred_sell_this_ajax

While you can sell the entire content of a post or page (or any other custom post type), you can use this shortcode to sell parts of the content allowing you to show "teasers" in the remaining content.

Continue Reading

mycred_send

This shortcode allows the user viewing the shortcode to send a pre-set amount of points under a specific reference to a pre-selected user. Basically this is a very very basic transfer shortcode where the amount, recipient and log template is already set.

Continue Reading

mycred_show_if

This shortcode allows you to show parts of your content for those who fulfil the requirements you set. This shortcode is the opposite of the mycred_hide_if shortcode. You can set a balance requirement, rank requirement (if the Ranks add-on is enabled) or a reference count.

Continue Reading

mycred_stripe_buy

This shortcode allows you to setup purchase buttons which triggers the Stripe Checkout window. It should be used instead of the mycred_buy shortcode if you have the buyCRED Stripe Gateway add-on enabled.

Continue Reading

mycred_stripe_subscribe

This shortcode allows you to setup subscription buttons which triggers the Stripe Checkout window. Requires the buyCRED Stripe Gateway add-on to be enabled.

Continue Reading

mycred_stripe_subscription

This shortcode will show a table where users can view their current subscription details.

Continue Reading

mycred_total_balance

This shortcode will show a users total points balance by adding up two or more point types into one.

Continue Reading

mycred_total_points

This shortcode allows you to show the total amount of points currently in circulation or the total amount of points awarded or deducted from your users for a specific event.

Continue Reading

mycred_total_since

This shortcode will show the total number of points a user has gained in a given timeframe. For example you can show the total number of points a user has gained today (default).

Continue Reading

mycred_transfer

This shortcode will generate the transfer form allowing users to send points to each other.

Continue Reading

mycred_users_of_all_ranks

This shortcode returns a list of users for each role in descending order. By default all users are returned for each rank but you can change this to any number.

Continue Reading

mycred_users_of_rank

This shortcode returns a list of users for a specific published role, ordered by their account balance. By default all users are returned for the given rank but you can set how many users to return.

Continue Reading

mycred_video

This shortcode is used to embed YouTube videos via IFRAME in order to allow us to award points for users who view the video. Videos that are embedded without using this shortcode can not award points for viewing.

Continue Reading