Home › Forums › Calendar Products › Events Calendar PRO › Restrict or show disabled past event in calendar
- This topic has 8 replies, 2 voices, and was last updated 6 years, 6 months ago by Sean.
-
AuthorPosts
-
September 28, 2017 at 1:30 am #1355974SeanParticipant
hide the past events from month view calendar. check attachment, Today date sep 28 but the calendar showing sep 26, 27 th events also, How can we hide past events from month calendar view
September 29, 2017 at 7:47 am #1356746VictorKeymasterHi Sean!
Thanks for getting in touch. Let me help you with this topic.
You can hide past events from the month view by placing the CSS snippet shared in the following article > https://theeventscalendar.com/knowledgebase/hide-past-events-on-the-events-calendars-month-view/
Let me know if it works for you.
Best,
VictorOctober 2, 2017 at 11:40 pm #1358130SeanParticipantWe seeking this functionality because of performance, So there is any hook or function available restrict before load those past events?
October 4, 2017 at 5:40 am #1358828VictorKeymasterHi Sean,
I think you could customize the query to do that, but I’m not sure if it will have a big impact on performance.
I will reach out to the team to see if we can come up with a snippet to not load past events in the month view or at least point you to an available hook to do so. I’ll get back to you as soon I have something.
Regarding performance, let me point you to a great article that will get you started on Performance Considerations you should know about. After that, if you decide to implement a caching system then you can move to these articles: Caching: What, when and how and Caching month view HTML in transients
Finally, there is a good article George put up here that groups a set of developer plugins. It’s a bit more technical than the others but will definitely be of help if you are into development.
I hope it helps.
Best,
VictorOctober 4, 2017 at 7:02 am #1358875VictorKeymasterHi Sean!
I’ve been able to find a snippet that will only show events from current day and forward.
Please try it out and see if it works for you.
Best,
VictorOctober 5, 2017 at 7:13 am #1359536SeanParticipantIts working Victor, Great. Thank you very much.
October 5, 2017 at 2:12 pm #1359980VictorKeymasterHey Sean!
Glad to know it works for you! Thanks for letting me know about it.
I’ll go ahead and close this now, but feel free to open a new topic if anything comes up.
Cheers,
VictorOctober 27, 2017 at 9:36 am #1370218Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Restrict or show disabled past event in calendar’ is closed to new replies.