• Resolved Mohsin Alam

    (@mohsinworld)


    How can I show more than one countdown with the countdown widget? Sometimes more than one match starts at the same time so they should need to come with the countdown. Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi there @mohsinworld ,

    Currently Countdown widget/shortcode shows ONLY the very next Event. If you want to show more events then you need some custom code that is beyond the scope of this support forum.

    You will need to copy plugins/sportspress/templates/countdown.php to your-child-theme/sportspress/countdown.php and alter it as yoy wish.

    As you can see at line 107 $post = sp_get_next_event( $args ); the code is getting just the next event. You should alter the $args array and use the get_posts() function to get more events, and then to iterate each one to show the info you want.

    Thanks,
    Savvas

    Thread Starter Mohsin Alam

    (@mohsinworld)

    Thank you for your help. But if you could provide me the code I can just copy paste and try.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @mohsinworld ,

    Unfortunately this is beyond the scope of WP support forums. You can hire a developer to assist you on that.

    Thanks,
    Savvas

    Thread Starter Mohsin Alam

    (@mohsinworld)

    Will not this code be wiped when the plugin has an update?

    Plugin Contributor Savvas

    (@savvasha)

    As long as you are making your changes inside your child-theme, there will not be wiped out on any plugin or theme update ??

    Thread Starter Mohsin Alam

    (@mohsinworld)

    Thank you so much for the support.

    Roch

    (@rochesterj)

    You’re most welcome!

    Let us know if you need anything else.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Show More Than One Match Countdown’ is closed to new replies.