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 8 replies - 1 through 8 (of 8 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")) ){
    
    Thread Starter 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.

    Thread Starter EmeraldCityEDM

    (@emeraldcityedm)

    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.

    Thread Starter EmeraldCityEDM

    (@emeraldcityedm)

    thank you very much ♥

    Thread Starter EmeraldCityEDM

    (@emeraldcityedm)

    Any luck on this?

    lwillisjhls

    (@lwillisjhls)

    I would like to know about this as well. Is there code that will show current and future events?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hide past events?’ is closed to new replies.