Home › Forums › Calendar Products › Events Calendar PRO › Recurring Event and Dates display in one view
- This topic has 13 replies, 2 voices, and was last updated 8 years, 5 months ago by
Extreme Networks.
-
AuthorPosts
-
November 2, 2017 at 9:06 pm #1374374
Extreme Networks
ParticipantIs it possible to alter the code and display only one event if there is 2 dates for a particular event? And the dates are in that one display
Example:
Event: ASSIST CLIENTS WITH MEDICATION SKILL SET – VIC (see Capture1.png) – https://lasa.asn.au/trainings/
– should be scheduled for 16th and 23rd November. But at the moment we just put the Nov 16 so the event with not appear as two separate in the list. Customers think they are two separate events if displayed twice in the list.We want it to display the “November 16 @ 9:00 am – 4:30 pm” to “November 16 & 23rd @ 9.00am – 4.30pm.”
Where can I edit the code for it and how can I prevent the November 23 event to be displayed at the list.November 3, 2017 at 3:33 pm #1375043Patricia
MemberHi there,
Thank you for reaching out to us!
I believe the best way to achieve what you want is by enabling the “Recurring event instances” option (under events > settings > General settings) to Show only the first instance of each recurring event ( please note that this option only affects list-style views).
After that, please add the following code on [your theme]/tribe-events/single-event.php
https://gist.github.com/nefeline/7a087e946e4c46bd30e64ae547c6e4d1
This template overrides the single-event.php file and adds a list with all recurring event dates at the beginning of each individual event: here’s an example.
I hope this helps you get started! If you have any other questions at all please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
November 5, 2017 at 9:57 pm #1375766Extreme Networks
ParticipantIs the start-end date possible to be move under the Title? and remove the other details. See attached Move-the-date.png
Also, at the tribe_events_list shortcode calendar display can we display the start-end date there? See attached Add-end-date-on-calendar.png
November 5, 2017 at 10:01 pm #1375769Extreme Networks
ParticipantAlso the two dates should be different not the same dates.
November 7, 2017 at 4:09 pm #1377507Patricia
MemberHi there,
This is just a quick follow-up to let you know that I’ll review this code tomorrow and contact you as soon as I have finished.
If you have any other questions in the meantime, please feel free to let me know and I’d be happy to help as best I can!
Cheers,
Patricia
November 7, 2017 at 11:26 pm #1377682Extreme Networks
ParticipantHi Patricia,
Looking forward to your quick reply. Thank you.
November 9, 2017 at 5:34 am #1378872Patricia
MemberHi There,
I’ve modified the template a little bit and now you can see the start and the end date of recurring events while accessing it.
Please add the following code in [your theme]/tribe-events/single-event.php
https://gist.github.com/nefeline/92fd2e513065bf6521c7ca7b1549b517
if you want modify/update the code to match your expectations, please edit lines 43 to 45:
43 <?php if( tribe_is_recurring_event() ) { 44 echo 'This event is part of a series that starts on ' . date( $format, strtotime( $getdates[0] ) ); 45 echo ' and ends on ' . date( $format, strtotime( $getdates[ $len - 1 ] ) ); 46 ?><br> <?php } ?>I hope this helps!
Cheers,
Patricia
November 9, 2017 at 4:07 pm #1379536Extreme Networks
ParticipantHow can I remove the starting time on the dates?
Also, how can I add the two dates under the calendar list.
CalendarNovember 9, 2017 at 8:10 pm #1379630Extreme Networks
ParticipantWe do need a speedy reply asap. Our clients events are coming soon and we need the plugin to pull this out.
https://lasa.asn.au/training/upcoming-accredited-training/November 10, 2017 at 8:51 am #1380031Patricia
MemberHi there,
Before we continue, just to set expectations, the scope of our support is mostly to get our customers started on the right track and to help them in case of issues. We unfortunately do not provide complete support for customizations like this one. We do have a list of recommended developers who could help you out with the code if necessary.
With that said, just to point you to the right direction regarding your previous requests:
– You can modify line 37 from this template to remove the start time of the events:
replace
$format = 'F j @ g:i a';
with
$format = 'F j';
– It’s possible to modify the [tribe_events_list] shortcode as well, but as already mentioned, this level of customization is out of the scope of our support. To help you get started, the shortcode simply wraps up the output of the advanced list widget and lets you embed it easily inside posts and pages – so the steps for customizing this are identical to customizing the list widget itself.
Our Themer’s Guide goes into more detail about the process and the following is the path to the source template you’ll most likely base your custom template on:
events-calendar-pro/src/views/pro/widgets/modules/single-event.php
You can basically add the same code I shared with you before to achieve what you want here:
I hope this helps!
Best Regards,
Patricia
November 12, 2017 at 9:50 pm #1381156Extreme Networks
ParticipantThis reply is private.
November 13, 2017 at 4:16 pm #1382030Patricia
MemberThis reply is private.
December 5, 2017 at 8:35 am #1398718Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Recurring Event and Dates display in one view’ is closed to new replies.
