Hello hello, I have another support request.
In the calendar “list & photo view” templates I have added an extra line that checks if the event has a featured images and if so, it returns the caption set for that image. It works.
<?php if( has_post_thumbnail() ) { ?>
<br>
<div class="bildunterschrift"><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></div>
<?php } ?>
Now I am trying to insert that same line into the “month view”, into the tooltip.php and mobile.php
I put this into tooltip.php and it is not working, it simply does not return the caption and I can’t figure out why not.
`[[ if(imageTooltipSrc.length) { ]]
<div class=”tribe-events-event-thumb”>
<img src=”[[=imageTooltipSrc]]” alt=”[[=title]]” />
<?php if( has_post_thumbnail() ) { ?>
<br>
<div class=”bildunterschrift”><?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?></div>
<?php } ?>
</div>`
Do you maybe have any idea why it works in list and photo view and every where else but not in the month view?
Kind regards,
Nicola