WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Only show future events (4 posts)

  1. KitC
    Member
    Posted 1 year ago #

    Hello!

    I have about 30 events in one day. I have a short list on my homepage showing the upcoming 7 events, but this list isn't updated during the day. For instance - when the time is 17.00 - events that ended before 17.00 is still showing. How can I make only events after the present time to show.

    This is the code I use to generate the list:

    <?php if (class_exists('EM_Events')) {
          echo EM_Events::output( array('limit'=>7, 'category'=>9, 'scope'=>'future') );
    } ?>

    I'm using the latest version of WP and Events Manager.

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

  2. agelonwl
    Member
    Posted 1 year ago #

  3. KitC
    Member
    Posted 1 year ago #

    That worked perfectly! :)
    Thank you!!

  4. KitC
    Member
    Posted 1 year ago #

    Forgot to mark as resolved!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic