Title: Check user balance
Last modified: August 22, 2016

---

# Check user balance

 *  Resolved [Chibanga](https://wordpress.org/support/users/chibanga/)
 * (@chibanga)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/check-user-balance/)
 * Hi,
 * I need help…
 * When a user has no point i need a link to buy points else show balance
 * thank you
 * [https://wordpress.org/plugins/mycred/](https://wordpress.org/plugins/mycred/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/check-user-balance/#post-5215171)
 * Hi.
 * [Here](http://pastebin.com/Wku8MqmD) is a custom shortcode you could use. Paste
   the code into your theme’s functions.php file and use it in any content on your
   website.
 * Example:
 *     ```
       [mycred_buy_points_link balance="10" url="http://mysite.com/buypoints/"]
       ```
   
 * _This will show a link called “Buy More Points” pointing to the URL you gave._
 * You can adjust the title that is shown like this:
 *     ```
       [mycred_buy_points_link balance="10" url="http://mysite.com/buypoints/" title="Buy Credits"]
       ```
   
 * It also supports multiple point types so the link is only shown when a users 
   balance of a certain point type is low. Example using a point type called “mytype”.
 *     ```
       [mycred_buy_points_link balance="10" url="http://mysite.com/buytype/" ctype="mytype"]
       ```
   
 * _If you are not using multiple point types then there is no need to use this._
 * Note that if myCRED is disabled, the current user viewing this shortcode is excluded
   from using myCRED or if the user has more points then you set in the shortcode,
   the shortcode will return nothing.

Viewing 1 replies (of 1 total)

The topic ‘Check user balance’ is closed to new replies.

 * ![](https://ps.w.org/mycred/assets/icon-128x128.gif?rev=3512531)
 * [Points Management System For Gamification, Ranks, Badges, and Loyalty Rewards Program - myCred](https://wordpress.org/plugins/mycred/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mycred/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mycred/)
 * [Active Topics](https://wordpress.org/support/plugin/mycred/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mycred/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mycred/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/check-user-balance/#post-5215171)
 * Status: resolved