Home › Forums › Calendar Products › Events Calendar PRO › Event with Same Title Appear only once
- This topic has 7 replies, 2 voices, and was last updated 11 years ago by
Geoff.
-
AuthorPosts
-
April 17, 2015 at 6:53 am #956256
Beth Bucciferro
ParticipantI am using Events Calendar PRO – I have some events that have the same title but cannot be shown once using the tribeHideRecurrence tag because they could not be entered as a recurring event because for example they occur on the same date but at different times say a matinee and then an evening show. Is there a way to have the list only show the performance once in the list if the event title is the same?
April 17, 2015 at 3:49 pm #956407Geoff
MemberHi Beth and thanks for getting in touch. Welcome back to the forums. 🙂
That’s a great question. As you might imagine, tribeHideRecurrence only has an impact if the events are in the same recurring series. That means two events can have the same title and still display since they are separate posts in seaprate series.
One idea might be to create a category called Hidden and remove that category from your calendar display. That would allow you to set the visibility on specific events that you would prefer to hide.
Would that work for you? Please let me know.
Cheers!
GeoffApril 17, 2015 at 5:00 pm #956427Beth Bucciferro
ParticipantIs there any query parameter that can be added to the functions.php file. The problem with the category is that multiple people will be entering events from their organizations and I can’t rely on them to ensure that they use the hidden category. If I can programmatically control it it would be much better.
April 20, 2015 at 8:11 am #956701Geoff
MemberHi Beth, thanks for following up!
Yes, excluding an event category programmatically is certainly possible. Check out the solution provided in this thread as an example and see if that help do the trick for you.
Cheers!
GeoffApril 20, 2015 at 9:00 am #956736Beth Bucciferro
ParticipantGeoff,
Is there anyway for me to SELECT a DISTINCT event_title so the performance could show up only once without having to make sure a category is chosen to exclude it. I am afraid the members entering their events would forget to check the category.
Thanks
BethApril 20, 2015 at 10:53 am #956766Geoff
MemberHi Beth,
That’s a good question. I would imagine it would be possible, but with custom development that is unfortunately outside the scope of support we provide here in the forums. I think either of the recommendations I suggested earlier will work, but customizing beyond that is something I’ll leave to you.
Please feel free to follow-up with specific questions about the customization as you get started and we’d be happy to try to answer.
Cheers!
GeoffApril 20, 2015 at 12:49 pm #956830Beth Bucciferro
ParticipantOne more question can I use add_action(pre_get_posts) to change the default query that upcoming events uses?
April 21, 2015 at 8:07 am #957044Geoff
MemberAbsolutely! In fact, here is a nice example where pre_get_posts was used to randomize events in the main loop of a site. The same idea could be applied to the events loop using conditional wrappers for events loops.
I’ll go ahead and close this thread since it seems we’ve covered the base question, but do please feel free to start a new thread if you have any other questions here and we’d be happy to help. 🙂
Cheers!
Geoff -
AuthorPosts
- The topic ‘Event with Same Title Appear only once’ is closed to new replies.
