Title: Leaderboard timeframe issues
Last modified: December 12, 2021

---

# Leaderboard timeframe issues

 *  Resolved [leorospo](https://wordpress.org/support/users/leorospo/)
 * (@leorospo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/leaderboard-timeframe-issues/)
 * Hi
    I have a custom theme in which I added support for MyCred. In a module in
   the home page i am using a shortcode to display the leaderboard of the most active
   users in the last week.
 * I’m using this code:
 *     ```
       [mycred_leaderboard number=10 timeframe=this-week nothing=Non c\'è nessuno qui. Perchè non provi a scalare la calssifica?]
           <a href="%user_profile_url%">
               <div class="mdl-con-drank-itm">
                   <div class="mdl-con-drank-itm-n">%position%</div>
                   <img alt="" draggable="false" class="mdl-con-drank-itm-a" src="%user_id%">
                   <div class="mdl-con-drank-itm-t">%user_id%</div>
               </div>
           </a>
       [/mycred_leaderboard]
       ```
   
 * I also have a filter hooked on `do_shortcode_tag` to intercept the shortcode 
   output and replace user IDs with images and nicenames.
 * If I change the shorcode’s `number` attribute the number of items changes accordingly.
   The time frame attribute on the other hand does not affect the output in any 
   way (i’ve tried removing it or replacing it with `today` or `this-month`)
    I’ve
   also tried using apexes `""` on the attributes, with no success.
 * Am I missing something?
    Thanks in advance leorospo
    -  This topic was modified 4 years, 5 months ago by [leorospo](https://wordpress.org/support/users/leorospo/).
      Reason: formatting code example

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

 *  [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * (@arsalantariq)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/leaderboard-timeframe-issues/#post-15158440)
 * Hi [@leorospo](https://wordpress.org/support/users/leorospo/),
 * Thank you for contacting us, The timeframe attribute works when `"total=1"`
 *  Thread Starter [leorospo](https://wordpress.org/support/users/leorospo/)
 * (@leorospo)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/leaderboard-timeframe-issues/#post-15171587)
 * Hi [@arsalantariq](https://wordpress.org/support/users/arsalantariq/)
    Thanks
   for quick the reply!
 * I would suggest adding this info in the [shortcode documentation](https://codex.mycred.me/shortcodes/mycred_leaderboard/).
 * At that page the codex also reads:
 * > When showing a leaderboard based on balances, you can select to use users total
   > balance (1) instead of their current balance (0). Added in 1.7.5.
 * Can you please explain the difference between the user total and current balances?
 * Thank you very much
 *  [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * (@arsalantariq)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/leaderboard-timeframe-issues/#post-15183775)
 * Hi [@leorospo](https://wordpress.org/support/users/leorospo/),
 * Please have a look at the [doc](https://codex.mycred.me/chapter-i/points/).

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

The topic ‘Leaderboard timeframe issues’ 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

 * [leaderboard](https://wordpress.org/support/topic-tag/leaderboard/)
 * [timeframe](https://wordpress.org/support/topic-tag/timeframe/)

 * 3 replies
 * 2 participants
 * Last reply from: [A.Tariq](https://wordpress.org/support/users/arsalantariq/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/leaderboard-timeframe-issues/#post-15183775)
 * Status: resolved