Title: My Ranking Shortcode
Last modified: August 21, 2016

---

# My Ranking Shortcode

 *  Resolved [chuyqwerty](https://wordpress.org/support/users/chuyqwerty/)
 * (@chuyqwerty)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/my-ranking-shortcode/)
 * Hello,
 * when I use the short code [mycred_my_ranking] it just always shows 0 no matter
   what my ranking is on the leaderboard. The leaderboard shortcode works, so I 
   do not know why this one does not.
 * Please help when you have a chance.
 * Thank you so much
 * [https://wordpress.org/plugins/mycred/](https://wordpress.org/plugins/mycred/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [chuyqwerty](https://wordpress.org/support/users/chuyqwerty/)
 * (@chuyqwerty)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/my-ranking-shortcode/#post-4982909)
 * I am logged in. I think maybe it can’t tell I am logged in because of my theme?
   
   Is there a way I can just have all shortcodes show even if I am not logged in?
 * I would like [mycred_my_rank] and [mycred_my_balance] to show even if they are
   not logged in. So if users visit their profile they can see it as well.
 * Is it possible to do this? Maybe its that “NULL” part of the code I have to modify,
   but I dont know PHP to make this happen. If you’re so kind, your help would be
   greatly appreciated again.
 * Thank you
 *  Plugin Author [myCred](https://wordpress.org/support/users/designbymerovingi/)
 * (@designbymerovingi)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/my-ranking-shortcode/#post-4983098)
 * Hi chuyqwerty.
 * The [mycred_my_rank](http://codex.mycred.me/shortcodes/mycred_my_rank/) shortcode
   will show the current logged in users ranking or if you have set the user_id 
   attribute, a specific users ranking. If you do not set a user_id and are logged
   out, the shortcode will show nothing (NULL).
 * The [mycred_my_balance](http://codex.mycred.me/shortcodes/mycred_my_balance/)
   shortcode will only show the logged in users balance that is viewing the page/
   post where you have inserted the shortcode.
 * You can not show logged out users balance since we do not know who the visitor
   is if they are not logged in so there is unfortunately no way you can change 
   this unless you somehow know 100% who is visiting your website without them being
   logged in.
 *  Thread Starter [chuyqwerty](https://wordpress.org/support/users/chuyqwerty/)
 * (@chuyqwerty)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/my-ranking-shortcode/#post-4983147)
 * Ok, I see
 * Thank you so much for your help!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘My Ranking Shortcode’ 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/)

## Tags

 * [ranking](https://wordpress.org/support/topic-tag/ranking/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [chuyqwerty](https://wordpress.org/support/users/chuyqwerty/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/my-ranking-shortcode/#post-4983147)
 * Status: resolved