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_tagto intercept the shortcode output and replace user IDs with images and nicenames.If I change the shorcode’s
numberattribute 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 withtodayorthis-month)
I’ve also tried using apexes""on the attributes, with no success.Am I missing something?
Thanks in advance
leorospo
The topic ‘Leaderboard timeframe issues’ is closed to new replies.