tribe_get_venue() et tribe_get_city()

Home Forums Calendar Products Events Calendar PRO tribe_get_venue() et tribe_get_city()

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1188527
    Fabrice
    Participant

    Hi, since the last update (I think) something doesn’t work anymore with my customised single-event.php.
    This part…

    <td class="agenda-list-lieu">
    <?php if ( $venue_details ) : ?>
    <span class="venue"><?php echo tribe_get_venue(); ?></span> - <span class="city"><?php echo tribe_get_city(); ?> <?php echo $formzip1; echo substr($zip, 0, 2); echo $formzip2; ?></span>
    <?php endif; ?>
    </td>

    … use to work well but now, it doesn’t print anything. As something changed that makes this inactive ?

    Thank you

    #1188533
    Fabrice
    Participant

    In fact, it works if I remove the if. It looks like the $venue_details variable is empty but why ?

    #1188865
    George
    Participant

    Hey Fabrice,

    Thanks for reaching out.

    I wasn’t able to reproduce any problems with that variable, so I’m wondering if you can clarify a things to help me investigate this issue:

    1. Can you please post your site’s complete, un-edited system information? Here’s how to do that → https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    2. Next, can you please specify the exact file path to your customized template file where this problem arises? You mention “single-event.php” — but there are numerous instances of this file in our templating system. Is yours at [your-theme]/tribe-events/list/single-event.php, for example? Or perhaps [your-theme]/tribe-events/pro/map/single-event.php

    3. Finally, can you copy and paste the complete, un-edited custom file you are referring to into a Gist at http://gist.github.com, and then share a link to that Gist in your reply?

    Thanks Fabrice! With this extra information I’ll try to piece together exactly why that variable is blank for you.

    Cheers,
    George

    #1199162
    Support Droid
    Keymaster

    Hey 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘tribe_get_venue() et tribe_get_city()’ is closed to new replies.