Home › Forums › Calendar Products › Events Calendar PRO › How do I change the display logic?
- This topic has 4 replies, 3 voices, and was last updated 8 years, 10 months ago by Support Droid.
-
AuthorPosts
-
October 9, 2014 at 5:12 pm #799571kqedParticipant
We would like to change the display logic so that recurring events do not appear by default on the home page if the first instance of the recurring event has already passed.
October 10, 2014 at 10:47 am #801171JoshParticipantHey kqed,
Thanks for reaching out to us!
The solution to this will partially depend on which view of the calendar is being displayed on the homepage. Is this a widget that is being pulled onto the homepage?
Once you determine how the calendar is being displayed on the homepage, you could follow our Themer’s Guide to create a custom loop for that view within your theme. Around the single events, you could add a conditional that checks for the current date against the first instance of
tribe_get_recurrence_start_dates
; to show only the first instance of a recurrence.Hopefully this will help to get you pointed in the right direction. Let me know if you have any further questions.
Thanks!
October 13, 2014 at 5:51 pm #808745kqedParticipantNo, it’s not a widget — we want to change the display logic of the /events/picks/ page
October 15, 2014 at 11:29 am #812640JoshParticipantHello kqed,
Thanks for following up with us!
In that case, you can use the Themer’s Guide to copy the “pro” -> “photo” -> “loop.php” file from the plugin into your theme and add the conditional logic around the call for the single event template for that view (
<?php tribe_get_template_part( 'pro/photo/single', 'event' ) ?>
)Let me know if this helps.
Thanks!
July 7, 2015 at 6:31 am #983523Support DroidKeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How do I change the display logic?’ is closed to new replies.