Stop events from auto-unpublishing

Home Forums Calendar Products Events Calendar PRO Stop events from auto-unpublishing

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #820376
    astcit
    Participant

    I was wondering if its possible to make it so that an event doesn’t automatically unpublish after the events time/date has ended.

    #821593
    Brian
    Member

    Hello astcit,

    I can help you out with this.

    When an event has past are you saying it becomes unpublished and changed to a draft in WordPress.

    The default behavior is after an event has past to remain published and be found in the previous events section for each view(month, list, etc)

    Is that not what it is doing for you?

    Are you running Event Rocket, have any custom functions, or have any plugins that could be doing this?

    Let me know and we can go from there to narrow down and resolve this.

    Thanks

    Note-Moved this to the Pro Forum as it does not relate to WooCommerce Tickets.

    #822891
    astcit
    Participant

    Sorry Brian, i wasn’t very clear in my question I think.

    The behavior your are describing is true;
    when an event ends, it remains published, but is found in the previous events section….

    I want it to stop being moved to the previous events section, I wish to be able to unpublish the event myself, putting it into the previous events section when needed.

    #822919
    astcit
    Participant

    if its possible of course 🙂

    #822986
    Brian
    Member

    Oh Ok, thanks for clarifying.

    There is not feature to do that within the Events Calendar.

    However, there is a plugin called The Events Calendar Housekeeper

    https://wordpress.org/plugins/the-events-calendar-housekeeper/

    It is an unofficial plugin, but should do what you would like.

    Please backup your site before trying.

    #823035
    astcit
    Participant

    hmm after checking that out,
    it might not really be what im after.
    will let you know how the tests go after backup is done.

    #823201
    astcit
    Participant

    def not what im looking for sorry Brian,
    this will do a complete ‘garbage collection’,
    completely deleting any expired events…. nothing like what im looking to do.

    after an events date has ended… instead of it automatically being put into the previous events area, i want to be able to move it there myself.

    are you able to at least point me in the right direction of what .php controls the moving from current event to previous events?

    #824311
    Brian
    Member

    That is to bad that does not work out for you.

    I can try to help out, see my answer below:

    are you able to at least point me in the right direction of what .php controls the moving from current event to previous events?

    There is no process taking place it is how the whole calender system is built, events that have past are not moved to the previous events section the system just picks them up as previous events based on their date. One way to hide them from the previous events section is to turn them to a draft or delete them after they have expired.

    Another way to do this would be to use this snippet to include categories: (by changing NOT IN to IN)

    https://gist.github.com/jesseeproductions/4b215d2b854a6f6cb649

    And then use this conditional tribe_is_past() instead of this tribe_is_month() && !is_tax() in the snippet to target just the past events.

    Then you can create a category (add it to the snippet) and assign it to events you would like to show on the Previous Events Pages.

    That is a very simple explanation it could take more coding and work from you to get it exactly how you would like it. That for the most part is beyond the support we can provide so I will have to leave you to it to figure it out from here 🙂

    Thanks

    #867053
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Stop events from auto-unpublishing’ is closed to new replies.