Home › Forums › Calendar Products › Events Calendar PRO › Displaying Category Events in Menu
- This topic has 2 replies, 2 voices, and was last updated 9 years, 6 months ago by Brian.
-
AuthorPosts
-
September 25, 2014 at 7:12 am #766010MikeParticipant
Hi,
I’m using an additional plugin called “Category Posts in Custom Menu” (http://bmo.re/YarXI5) to list the 4 events that are within a certain Category (‘Featured’), as menu items.This plugin is really aimed for Posts and Categories of Posts but Events shouldn’t be different. The problem I’m facing is that Tribe is setting some sort of global filter that hides event that have already passed. This is fine, except that filter seems to not engage when I’m on a single event page.
My question is not to go in and diagnose my specific site, but to provide a general response as to a global filter/function of some sort that will hide “past events” from query.
September 25, 2014 at 8:47 am #766210BrianKeymasterHello,
I can help give you some information on the global filter/function of some sort that will hide “past events” from a query.
Our queries to get events include this:
'eventDisplay' => 'upcoming'
That is our argument to only get upcoming events. You can use ‘past’ and ‘all’.
Since that is done in a query it is not used on the Single Events Template.
There are many conditionals to use if you would like to check if an event has passed, here is a good source:
https://gist.github.com/jo-snips/2415009
You could then follow our themer’s guide to make modifications to the single-event template to hide content after the event is over.
https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/
There is also an unofficial plugin called Event Rocket that cleans up past events if you would like to remove them.
Does that help?
Thanks
October 17, 2014 at 7:28 am #815852BrianKeymasterSince there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂
-
AuthorPosts
- The topic ‘Displaying Category Events in Menu’ is closed to new replies.