Home › Forums › Calendar Products › Events Calendar PRO › Week View Show Current Day as Start Day
- This topic has 5 replies, 2 voices, and was last updated 7 years, 11 months ago by Nico.
-
AuthorPosts
-
May 21, 2016 at 9:07 pm #1117496imaginate WhiteParticipant
Hello, I can’t seem to find a solution. Is it possible to have the week view start on the current day?
For example, if today is friday, it would start the week on Friday and show till the next Thursday. So the start day (first day in the week) is always the current day.
Let me know if this is possible. Thanks.
May 23, 2016 at 11:17 am #1117881imaginate WhiteParticipantMy client just got back to me and instead of the start of the week being today, instead he wants the week to start on a Friday instead of Monday always. Seems like that would be easier that what I was checking in on before. Is that possible?
May 23, 2016 at 11:23 am #1117886imaginate WhiteParticipantFound the answer to my question. The week view inherits the WordPress week start date. Very clever.
We should be good to go now. I would be curious though if it’s possible to have the week start on whatever the current day is though. So I’ll leave this open for a Tribe Ninja to answer. Thanks.
May 23, 2016 at 8:33 pm #1118070NicoMemberHey @imaginate,
Thanks for reaching and also for updating the thread with your solution 🙂
Indeed the code for week view uses the WordPress setting for ‘Start of the week’. While this cannot be changed (there’s no filter to override this in the Week View class) you might be able to make a cron script to change the WordPress ‘Start of the week’ option to the current day. Of course this might affect other things in the site and it’s just an idea of how this could be possible.
Please let me know if there’s anything else I can help you with,
Best,
NicoMay 24, 2016 at 3:45 pm #1118469imaginate WhiteParticipantThank Nico
May 25, 2016 at 10:35 am #1118791NicoMemberYou are welcome!
As you marked the issue as resolved I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Best,
Nico -
AuthorPosts
- The topic ‘Week View Show Current Day as Start Day’ is closed to new replies.