Home › Forums › Calendar Products › Events Calendar PRO › Show sticky events at the top of Week view
- This topic has 5 replies, 2 voices, and was last updated 6 years, 6 months ago by nysci.
-
AuthorPosts
-
October 12, 2017 at 9:25 am #1362650nysciParticipant
We have some events marked that show up first in Month view. We want those same events to show up first in Week view. Possible? Guidelines? We are comfortable with doing some programming if necessary, but would appreciate knowing where to start.
October 13, 2017 at 3:09 pm #1363503CliffMemberHi. I don’t personally see how this would be advantageous because they’re in order vertically by hour. I’m guessing you’re saying that you want featured events to appear as all-day events within Week View. Is this basically what you’re wanting? If yes, it’d definitely be a customization you’d have to explore on your own. Have you considered using the List View instead? Its styling prominently displays Featured Events.
Please let me know your detailed thoughts on this so I can see if I can be of any further help.
October 17, 2017 at 12:26 pm #1364894nysciParticipantOkay, I understand that it’s a customization I’d have to explore on my own; that’s fine. Can you give me some guidance? I’m thinking that it would be helpful to know where the sticky meta information is saved, and which (sorting?) function in the “month view” script is used in order to float those to the top. Then I can leverage that information on the week view page. Also, if there is a filter that can be applied to the events calendar when it’s returning items for the week view, so that I can tell it to sort differently at that moment, let me know. Thanks.
October 17, 2017 at 9:33 pm #1365113CliffMemberAlthough the word “sticky” is used, it’s not the built-in https://codex.wordpress.org/Sticky_Posts functionality.
Instead, Events indicated as “sticky” have their menu_order set to -1
You should be able to leverage the tribe_events_query_posts_orderby filter and apply your custom querying and/or sorting, such as menu_order ASC
To target the Week View, you could use ‘week’ === $query->query_vars[‘eventDisplay’]
Please let me know how things go for you.
November 8, 2017 at 8:36 am #1378105Support 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 ‘Show sticky events at the top of Week view’ is closed to new replies.