Displaying Category Events in Menu

Home Forums Calendar Products Events Calendar PRO Displaying Category Events in Menu

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #766010
    Mike
    Participant

    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.

    #766210
    Brian
    Keymaster

    Hello,

    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.

    Event Rocket

    Does that help?

    Thanks

    #815852
    Brian
    Keymaster

    Since 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! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Displaying Category Events in Menu’ is closed to new replies.