WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Events Manager] my-bookings.php – Show Future Bookings Only

[Resolved] [Plugin: Events Manager] my-bookings.php – Show Future Bookings Only

  • bisrael
    Member

    @bisrael

    I’m trying to use the my-bookings page to list a user’s bookings but I only want to show upcoming events, not everything the user has booked.

    Can someone offer advice on how to add a ‘future-events’ filter to my-booking.php or show how to use a events_list short_code to list the current user’s future bookings?

    Thanks in advance

    B Israel
    London, Ontario

    http://wordpress.org/extend/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • agelonwl
    Member

    @angelonwl

    you can edit template file templates/my-bookings.php then add this snippet

    $todays_date = date("Y-m-d");
    $today = strtotime($todays_date);

    above if( ($rowno < $limit || empty($limit)) && ($event_count >= $offset || $offset === 0)

    then change that if condition to

    if( ($rowno < $limit || empty($limit)) && ($event_count >= $offset || $offset === 0) && ($EM_Event->start >= $today) ) {

    Using Template Files

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Events Manager] my-bookings.php – Show Future Bookings Only’ is closed to new replies.