WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Jose
    Member
    Posted 1 year 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>
    				[/eo_events]

    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.

    Thanks.

    http://wordpress.org/extend/plugins/event-organiser/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic