• Resolved leorospo

    (@leorospo)


    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 2 years, 11 months ago by leorospo. Reason: formatting code example
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Leaderboard timeframe issues’ is closed to new replies.