Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mark O’Donnell

    (@markodonnell)

    Hi vins1892,
    There is no automatic way to display the next four games in the schedule. I believe all you can do show exactly four games and set the start (or earliest) date. Then you have to change the start date after each game. You can certainly show one game with the countdown timer, but I see from your site that you have already found that widget.

    Something along these lines has be requested by several users so it may well make it into the next release. We’ll see.

    Best,
    -Mark

    Thread Starter vins1892

    (@vins1892)

    Thanks for the answer Mark.

    Just to be sure that my question was clear: the aim is to show future games and not previous games in the schedule widget (4,5 or 6 whatever)

    Best,

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Right. Thanks.

    zraj

    (@zraj)

    I fixed this by edit plugin file mstw-game-schedule.php in function widget()

    change $first_dtg to time() in

    // Get the game posts for $sched_id
    $posts = get_posts(array( ‘numberposts’ => $max_to_show,
    ‘relation’ => ‘AND’,
    ‘post_type’ => ‘scheduled_games’,
    ‘meta_query’ => array(
    array(
    ‘key’ => ‘_mstw_gs_sched_id’, //**
    ‘value’ => $sched_id,
    ‘compare’ => ‘=’
    ),
    array(
    ‘key’ => ‘_mstw_gs_unix_dtg’,
    ‘value’ => array( $first_dtg , $last_dtg),
    ‘type’ => ‘NUMERIC’,
    ‘compare’ => ‘BETWEEN’
    )
    ),
    ‘orderby’ => ‘meta_value’,
    ‘meta_key’ => ‘_mstw_gs_unix_dtg’,
    ‘order’ => ‘ASC’
    ));

    Plugin Author Mark O’Donnell

    (@markodonnell)

    Awesome. Thanks. This feature is available in the next release, which is in test right now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to show next 4 games in the schedule?’ is closed to new replies.