Home › Forums › Calendar Products › Events Calendar PRO › Adjusting schedule details for an event.
- This topic has 5 replies, 3 voices, and was last updated 9 years, 10 months ago by
Josh.
-
AuthorPosts
-
July 4, 2016 at 5:24 pm #1135272
Cassandra
ParticipantI am looking to parse out the Day / Month and Time of an event into two separate fields. It looks like the start time is bringing in the day month and start time and end time only brings in the end time. Is there any way to configure this to be Day and Month and then Time?
I have the proper folder configuration set up and can make adjustments to the template without any issues, but just don’t know where to edit or adjust tribe_events_event_schedule_details.
Any information will be helpful.
Thank you,
CassyJuly 5, 2016 at 7:33 am #1135432Josh
ParticipantHey Cassandra,
Thanks for reaching out to us!
There are a couple of sections you would need to modify to get what you’re describing. You’ve got the first which would be the “tribe_events_event_schedule_details” function and the other would be modifying the meta in the template override for the single view ( src > views > meta > details.php).
I’m limited in the amount of customization support that I can provide here but I’ll definitely try to get you pointed in the right direction.
To start, take a look at the top of the details.php file listed above. There you can see the variables that build some of what you’re describing here. Essentially what you would do would be to call the “tribe_get_start_date” and “tribe_get_end_date” functions twice for the two fields you’d like to display. For each though, you would format them to display either the month day or just the time.
The examples for the start time would be “tribe_get_start_date( null, false, ‘g:i A’ );”.
For the other views that utilize the “tribe_events_event_schedule_details” function, you can filter the “$inner” portion of that function using the “tribe_events_event_schedule_details_inner” filter to modify the output to fit your needs here.
Let me know if this helps.
Thanks!
July 6, 2016 at 7:06 pm #1136365Cassandra
ParticipantThanks Josh!
I was wondering where this info was being generated.
I have a few other questions, would I need to start a new thread?
Thanks again,
CassyJuly 7, 2016 at 9:46 am #1136670Josh
ParticipantHey Cassy,
No problem, happy to help!
It would probably be best to open new tickets for different types of questions. This will help to keep the forums organized as well as help us to ensure we’re able to address each of the questions directly and fully without the confusion of addressing different topics within a single thread.
Thanks!
July 10, 2016 at 6:32 pm #1137985Josh
ParticipantHey Cassy,
I’ll go ahead and close this thread for now. We’ll be happy to answer your other questions in their own threads.
Thanks!
-
AuthorPosts
- The topic ‘Adjusting schedule details for an event.’ is closed to new replies.
