Add event’s venue to photo view

Home Forums Calendar Products Events Calendar PRO Add event’s venue to photo view

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1224309
    Adage
    Participant

    Hello,
    I’ve tried to add event’s venues to single-event.php in photo view, and would like to do the same in month and week views, but the code I’ve tried don’t work… and I can’t find why…

    I’ve tried <div class="tribe-events-location tribe-section-s">
    <?php echo $location; ?>
    </div>
    but with no effet…
    Thank you.

    #1224745
    Cliff
    Member

    Hi, Adage.

    Could you please provide a full copy of your template override file and the location of where you put it?

    #1224963
    Adage
    Participant

    This reply is private.

    #1225434
    Cliff
    Member

    That file name and placement looks good to me. I believe the issue is that $location is not defined.

    I’d suggest by referencing this:

    https://gist.github.com/cliffordp/69e9440d344e923c8f326b7ed846b04f

    It’s not from the current version of our plugins but can probably give you exactly what you’re looking for.

    I’d also suggest enabling WP_DEBUG and watch for errors while testing your custom code. For example, your current single-event.php will likely throw an error relating to $location being an undefined variable.

    Please let me know how this goes for you.

    If you need some additional coding help, you may want to ask your developer or reference our documentation and list of known customizers.

    #1225913
    Adage
    Participant

    Thank you very much ! It’s perfect.

    #1226421
    Cliff
    Member

    Great! Thanks for letting me know 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Add event’s venue to photo view’ is closed to new replies.