The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. KitC
    Posted 3 years ago #


    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.


  2. agelonwl
    Posted 3 years ago #

  3. KitC
    Posted 3 years ago #

    That worked perfectly! :)
    Thank you!!

  4. KitC
    Posted 3 years ago #

    Forgot to mark as resolved!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic