• I have a number of games that have been cancelled. I also have a widget on the front page to display the countdown to the next game.
    Even though a game has been cancelled, they are still showing up in the countdown.

Viewing 5 replies - 1 through 5 (of 5 total)
  • check if the widget that you are using have the option “ALL” selected in the “event” options.

    i.e. (i have my theme in spanish, sorry) https://prntscr.com/ft3ccw, try to only choose “programed” and check if it works! (the widget gonna show only programed events, not played or postponed i guess)

    • This reply was modified 7 years, 8 months ago by facudson.
    • This reply was modified 7 years, 8 months ago by facudson.
    Thread Starter Gator8

    (@gator8)

    There is nothing in the Countdown widget to select only “Published” events. I can either choose “Auto” or a specific event.

    Roch

    (@rochesterj)

    Hi @gator8

    Thanks for reaching out!

    There is no way to automatically do that at the moment. The best you can do is to set an offset manually. You can do that in your /sportspress/templates/countdown.php after line 53 and add this:
    $args['offset'] = 1;

    Another idea is removing cancelled posts from the plugins functions, but that would require more custom code to avoid messing up other queries.

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter Gator8

    (@gator8)

    I worked around it by setting the events to ‘private’.

    Roch

    (@rochesterj)

    Hi!

    That’s a great idea!

    Kind Regards,
    -Roch

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cancelled games still show in countdown widget’ is closed to new replies.