Home › Forums › Ticket Products › Event Tickets Plus › List events by name not date
- This topic has 6 replies, 2 voices, and was last updated 8 years, 11 months ago by Brian.
-
AuthorPosts
-
March 22, 2015 at 5:30 am #950009HelenParticipant
I want to view one of my events category’s list view with the events in alphabetical order rather than in time and date order. It is a list of several events happening the same day and I want to show them in alphabetised/numerical order by name rather than date.
Any pointers? Thank you.March 22, 2015 at 8:03 am #950026BrianKeymasterHi Again.
We do not have a feature to list events by name in the plugin. Everything is based on displaying them by date and time.
However, the events are custom post types ( tribe_events ) so you can use a custom loop to get the events and order them the way you would like.
We also have this article on using tribe_get_events():
https://theeventscalendar.com/knowledgebase/using-tribe_get_events/
Please not on customizations we can help point you in the right direction, but it is beyond the support we can provide to troubleshoot or provide coding for them.
Let me know if you have any follow up questions.
Thanks
March 23, 2015 at 5:03 am #950093HelenParticipantHi Brian
Thanks for your help. Could you tell me which file it calls when I ask it to display an “event category” – I would like to be able to edit the file it calls and remove the date and time display. I know how to do that if I can find the right file to edit! Thanks
March 23, 2015 at 7:07 am #950114BrianKeymasterNot sure what exactly you are referring to.
The Event Templates for Pro and the Events Calendar are found in the view directories of each plugin. That controls the look of everything.
We have a themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
To show you how to move and edit templates.
The Categories call these views (Month, List, Map, etc) as well as the non category views.
To target just categories here is a good list of conditionals:
https://gist.github.com/jo-snips/2415009
Thanks
March 23, 2015 at 8:00 am #950138HelenParticipantWhat I’m trying to do is prevent the date and time showing in one category of events. I need to list the events in this category by number/name not by time and date so I’m going to set all the times to be the same but I then need to hide the time and dates for those events. I can see how I would remove the time and date for all events but not for just those dates in a specific category.
Any thoughts would be great Thanks.
March 23, 2015 at 11:19 am #950203BrianKeymasterFollowing the themer’s guide you can modify any of the front end templates.
If you want to hide a date and time in one category you can use the WordPress function is_tax()
https://codex.wordpress.org/Function_Reference/is_tax
To do a check if in the event category or not and if not then display the date and time.
The event category taxonomy is registered as:
tribe_events_cat
May 25, 2015 at 6:06 pm #964971BrianKeymasterI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
-
AuthorPosts
- The topic ‘List events by name not date’ is closed to new replies.