Event Organiser
[resolved] Possible to have event removed once the event has occured? (3 posts)

  1. Jose
    Posted 3 years ago #

    I modified the shortcode as follows:

    [eo_events numberposts=3]
    				<div class="date">%start{M jS}%</div>
    				<div class="event">
    				<a class="title" href="%event_url%">%event_title%</a> <br />
    				 %event_excerpt%<br />
    				<a class="btn sm" href="%event_url%">Learn More</a>
    				</div><div class="cf clear"></div>

    What I'm asking for, maybe it had been asked and solved already but is there a possibility I can get an event to be removed once the event has occurred. I notice I have to do it manually but was wondering if it can do so automatically.



  2. Stephen Harris
    Posted 3 years ago #

    So I think you're asking if you can exclude an event from the list once its occurred? Yes you can:

    [eo_events numberposts=3 event_end_after='today']

    Will list events which end after (or on) today. Alternatively you can use:

    [eo_events numberposts=3 showpastevents=false]

    You could also be asking if its possible to automatically delete an event after its finished - and again, yes you can. In the plug-in settings there is the option to run a (WP) cron job which will automatically trash events around 24 hours after they have finished (for recurring events, this is 24 hours after the last occurrence has finished).

  3. Jose
    Posted 3 years ago #

    Sorry for getting back late. But it worked

    [eo_events numberposts=3 showpastevents=false]

    Thank you so much!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Event Organiser
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic