Do you maybe know the reason for this conflict?

Home Forums Calendar Products Events Calendar PRO Do you maybe know the reason for this conflict?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #962471
    Nicola
    Participant

    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

    #962544
    Nicola
    Participant

    Hello, I just wanted to say that I was able to locate the problem, not the cause tho. But so I don’t need help for this anymore.

    It was two events causing that line not to be shown for all events any longer. Once I have deleted the two events it works again. Maybe the text formation in those two events has screwed something up? I don’t know.

    Kind regards,
    Nicola

    #962655
    Brian
    Member

    I am glad to see you were able to figure it out. If you find something new let us know.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Do you maybe know the reason for this conflict?’ is closed to new replies.