Home › Forums › Calendar Products › Events Calendar PRO › List Seminars in main events calendar, but not each seminar event
- This topic has 7 replies, 5 voices, and was last updated 7 years, 6 months ago by George.
-
AuthorPosts
-
October 13, 2016 at 11:48 am #1176177Josh FialkoffParticipant
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?October 13, 2016 at 3:04 pm #1176297CliffMemberHi 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)?
October 14, 2016 at 4:19 am #1176462Josh FialkoffParticipantCorrect. 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?October 14, 2016 at 2:05 pm #1176841CliffMemberHi 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.
October 14, 2016 at 2:35 pm #1176856CliffMemberAnother 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.
November 5, 2016 at 9:35 am #1188184Support 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 TeamNovember 16, 2016 at 4:13 pm #1193563GeorgeParticipantHello!
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 -
AuthorPosts
- The topic ‘List Seminars in main events calendar, but not each seminar event’ is closed to new replies.