Home › Forums › Calendar Products › Events Calendar PRO › Display Two or More Featured Images on Same Day
- This topic has 5 replies, 2 voices, and was last updated 6 years, 8 months ago by Samuel.
-
AuthorPosts
-
July 25, 2017 at 4:28 pm #1326099SamuelParticipant
Hi – I’m wondering if it’s possible to display more than one featured image on days where there are more than one event happening. See screenshots for example on the 21st of the month (no featured images display when more than one event is on the same day).
Any help would be greatly appreciated.
July 27, 2017 at 9:50 am #1327005PatriciaMemberHey Samuel,
Thank you for reaching out to us!
Assuming that you followed the instructions in this article to include featured images to month view, you can simply replace this code:
<?php if ( has_post_thumbnail() && 1 == $day['total_events'] ) : ?> <div class="tribe-events-event-thumb"><?php echo get_the_post_thumbnail( $post->ID, array(90,90) );?></div> <?php endif; ?>
With:
<?php if ( has_post_thumbnail() ) : ?> <div class="tribe-events-event-thumb"><?php echo get_the_post_thumbnail( $post->ID, array(90,90) );?></div> <?php endif; ?>
on ‘wp-content/themes/[name of theme]/tribe-events/month/single-event.php’ to achieve what you want.
I hope this helps! Let me know if you need anything else and I’ll be happy to assist!
Regards,
Patricia
July 27, 2017 at 10:10 am #1327016SamuelParticipantThank you! Perfect solution.
July 27, 2017 at 2:34 pm #1327157PatriciaMemberHey Samuel,
You are very welcome! 🙂
Let me know if you need anything else and have a great day!
Regards,
Patricia
August 18, 2017 at 9:35 am #1337406Support DroidKeymasterHey 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 ‘Display Two or More Featured Images on Same Day’ is closed to new replies.