• I saw that events with a start AND end date where hiding as soon as they are started when I was using the “future events” setting.

    I modified the code in eap-functions.php like so:

    Line 112 use “until” date instead of “from” date:

    ‘key’ => ‘eap_until_day’,

    The thing is I might loose that if there is an update and for it to work, you have to select an “until” date for each event. So we could force adding one… But I dont know how. If that could be included in the plugin it would be great! That or someone better than me could tell to use “until” date for inclusion rule but use “from” date is empty. I tried but failed ??

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m having the same issue as this, did you hear anything or have a solution?

    Thread Starter jeanseb

    (@jeanseb)

    My solution works; modifying line 112 for this:

    ‘key’ => ‘eap_until_day’,

    Note that you have to set an end date for each event for it to work.

    But it might get overwritten when I update the plugin so I backed up that file in case.

    Plugin Author Ambrogio Piredda

    (@orbam7819)

    @jeanseb, thanks. You are right. The event will hide if the start date is passed even though the end date is not. I’ll check this out before the next update.

    At the moment you can add this (substitute line 110 to 114) to fix it, and the until date won’t be mandatory.

    'meta_query'     => array(
       'relation'   => 'OR',
       array(
         'key' => 'eap_from_day',
         'value' => $date,
         'compare' => '>='
       ),
       array(
         'key' => 'eap_until_day',
         'value' => $date,
         'compare' => '>='
       )
     ),

    I get a ‘critical error’ on the site if I use the above… I think I’ll wait for an update ??

    Plugin Author Ambrogio Piredda

    (@orbam7819)

    @kellylouise007, I’m not getting any errors. Please, double check that you have applied the code above correctly.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Please add this code: Include events already started’ is closed to new replies.