Event Expiration

Home Forums Calendar Products Events Calendar PRO Event Expiration

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #18765
    javier
    Participant

    Hello!
    When a event expires… Does It dissappear from database? Or Does it integrate the historic/archive of the web?
    I need that the finalized event dissappear from my database to keep it clean from past info. How Can I do this?
    Thanks!

    #18809
    Jonah
    Participant

    Hi Javier,

    Events do not disappear from the database when they expire and there is no setting through our plugin to be able to do this. You’ll want to find some plugin to help you with. Something like this might work for you: http://wordpress.org/extend/plugins/auto-delete-posts/

    Good luck!

    #18816
    javier
    Participant

    Thanks! I don´t want to use any plugin (if it possible to avoid it)…

    Looking in the web I found this article… could there be any conflict or problem if I used the coding for expire/ auto-delete events????

    http://j3webworks.com/blog/wordpress-make-posts-expire-or-auto-delete

    Thanks!

    #18821
    Jonah
    Participant

    Hi Javier,

    I’m not sure, haven’t tested out that code. You’ll need to try it out and see if it works.

    #18833
    javier
    Participant

    I have made that code work in the normal or default post or blog entry… but not in the event content type… then it can´t modify the expiration of a event, just the expiration of a normal post.
    …Through the way I have done it I imagine that I have to do the same process in some of the php events files, so…

    Where is the loop of the event? and… Is there a similar php file such as Function.php (that make the similar function or replace it) in the event calendar plugin?

    Thanks again Jonah!
    Thanks

    #18902
    Jonah
    Participant

    Hi Javier,

    I’m going to need to get a developer to help with this because I’m not quite sure the answer. Stay tuned.

    Cheers,
    Jonah

    #19004
    javier
    Participant

    Thanks Jonah!

    I suppose that any users doesn´t want to use a plugin for this simple feature. It could be a new good feature to next versions.

    Stay tuned for your answer. Thanks!

    #19175
    Rob
    Member

    Just a heads up that we haven’t forgotten about this, Javier. The dev who will be assisting has been out the last few days but we will get you a response as soon as possible this week. Thanks for being patient so far.

    #19188
    moderntribe
    Participant

    Hi, Javier!

    After looking at the code at http://j3webworks.com/blog/wordpress-make-posts-expire-or-auto-delete, I noticed that there is probably a way to get it to work for events (not just normal posts). If you see line 42 of that example code (the add_meta_box function), if you change the fourth argument from `post` to `tribe_events`, the meta box should start showing on the events pages (and not normal post pages). While I haven’t tested this out, I believe it should work. Keep us posted, and I hope you’re enjoying working with The Events Calendar!

    #19425
    javier
    Participant

    Hi! First of all, thanks for your support! You’re the best support I’ve seen by now!
    I made it work till the loop, but… where is the event’s loop??

    Thanks again, guys!

    #19451
    Jonah
    Participant

    Hi Javier,

    To modify the loop you’ll want to use: http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts

    Cheers,
    Jonah

    #976884
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Event Expiration’ is closed to new replies.