How to check for events page condition Post date Home › Forums › Calendar Products › Events Calendar PRO › How to check for events page condition This topic has 2 replies, 2 voices, and was last updated 5 years, 6 months ago by Brian. Viewing 3 posts - 1 through 3 (of 3 total) Author Posts March 11, 2015 at 11:29 am #947683 smpcherrypointParticipant My theme uses featured images throughout. Almost all our pages uses them and the tag to pull them onto the page lives in the header.php file. We’ve now started using the Featured Images for our events – we really like the way they are used within the event templates. The problem is that on some of the pages – the thumbnail appear twice, as it is being called by both the header.php and the event calendar page. What conditional statement can I use to omit the image from being called twice? I have tried !get_post_type() == ‘tribe_events’ && is_single() but that will stop it from appearing on our single pages, too – not just the events ones. March 11, 2015 at 12:48 pm #947700 BrianKeymaster Hi, Thanks for using our plugins. I have a list of conditionals that might help: https://gist.github.com/jo-snips/2415009 Another one to try is: is_singular( 'tribe_events' ) Let me know if that helps. Thanks April 30, 2015 at 5:03 am #959551 BrianKeymaster I 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 Author Posts Viewing 3 posts - 1 through 3 (of 3 total) The topic ‘How to check for events page condition’ is closed to new replies.