Home › Forums › Calendar Products › Events Calendar PRO › Event Expiration
- This topic has 11 replies, 5 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
May 7, 2012 at 10:55 am #18765
javier
ParticipantHello!
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!May 7, 2012 at 1:57 pm #18809Jonah
ParticipantHi 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!
May 7, 2012 at 2:49 pm #18816javier
ParticipantThanks! 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!
May 7, 2012 at 3:41 pm #18821Jonah
ParticipantHi Javier,
I’m not sure, haven’t tested out that code. You’ll need to try it out and see if it works.
May 7, 2012 at 6:11 pm #18833javier
ParticipantI 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!
ThanksMay 8, 2012 at 5:10 pm #18902Jonah
ParticipantHi 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,
JonahMay 10, 2012 at 11:11 am #19004javier
ParticipantThanks 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!
May 14, 2012 at 7:32 pm #19175Rob
MemberJust 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.
May 15, 2012 at 8:29 am #19188moderntribe
ParticipantHi, 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!
May 20, 2012 at 3:29 pm #19425javier
ParticipantHi! 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!
May 21, 2012 at 10:46 am #19451Jonah
ParticipantHi Javier,
To modify the loop you’ll want to use: http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts
Cheers,
JonahJuly 7, 2015 at 6:20 am #976884Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Event Expiration’ is closed to new replies.
