List Seminars in main events calendar, but not each seminar event

Home Forums Calendar Products Events Calendar PRO List Seminars in main events calendar, but not each seminar event

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1176177
    Josh Fialkoff
    Participant

    For seminars, we only want to list the main seminar, such as http://btu.org/event/2016-building-rep-conference/, not the individual events (like the http://btu.org/event/breakfast-buffet/) within that category on the main events page.
    What’s the best way to do that?

    #1176297
    Cliff
    Member

    Hi Josh. Thanks for those links.

    Are you saying you want Breakfast Buffet to NOT appear at http://btu.org/events/ (which defaults to List View but you want to hide it from ALL views)?

    If yes, do you the events you want to hide have anything in common (such as a specific Event Category or something else)?

    #1176462
    Josh Fialkoff
    Participant

    Correct. We do not want ancillary events, such as the Breakfast Buffet, to appear in the main events calendar.
    We do want such ancillary events to appear on the Building Reps agenda, since it is part of the day.
    Are you suggesting that we tag it with something like, “ancillary events” and then exclude that tag from the main events loop?

    #1176841
    Cliff
    Member

    Hi Josh.

    Yes, that’s what I was thinking.

    I’m uncertain, but I believe tribe_events_pre_get_posts() might be what you’re needing to leverage.

    Additionally, just FYI: the ‘post__not_in’ parameter — https://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters — cannot be reliably used in tribe_events_pre_get_posts() because post__not_in is used a lot throughout our plugins.

    It should eventually be fixed to merge post__not_in instead of overwriting it, but that’s not the case at this time.

    #1176856
    Cliff
    Member

    Another idea: maybe use tag__not_in or else add some post meta as a type of flag and add a NOT IN type meta query. I hope this might help with your customization.

    #1188184
    Support Droid
    Keymaster

    Hey 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

    #1193563
    George
    Participant

    Hello!

    I wanted to inform you that we’ve just published a series of updates to our products that fixes a number of issues.

    These releases relate to the issues reported here, because this issue has prompted us to update our plugins so they don’t negate the use of post__not_in as was discussed above.

    Learn more about this release—version 4.3.3—in the official release notes here → https://theeventscalendar.com/maintenance-release-events-calendar-4-3-3-event-tickets-4-3-3-premium-plugins/

    Thanks!
    George

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘List Seminars in main events calendar, but not each seminar event’ is closed to new replies.