Support » Plugin: WP FullCalendar » Hide past events?

  • How can I hide past events? I see that there is a two year old response to this question at melbwebdesign.net.au but the link no longer works.

    I just want to calendar to only show today and future events, not past events.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    at the moment you can do this by modifying wp-content/plugins/events-manager/em-wpfc.php and then search for

    
    if( $event_day_counts[$date] <= $limit ){
    

    and replace with

    
    if( $event_day_counts[$date] <= $limit && strtotime($EM_Event->event_start_date) > strtotime(date("Y-m-d")) ){
    
    EmeraldCityEDM

    (@emeraldcityedm)

    Is there a way to do this in the settings? Im not very familiar with editing php.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    sorry but at the moment settings for this is not yet available.

    I was able to edit the PHP and it is working except it is excluding today’s events. I tried changing are future events past events and it didnt have an impact.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    let me try on our test server and update you here once we make it work.

    thank you very much ♥

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.