• Resolved David Wang

    (@blogjunkie)


    I’m integrating The Events Calendar in a Genesis child theme and want to show the venue name. I tried this:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    <?php
    global $post;
    // both of these don't work :(
    echo tribe_get_venue( $post->ID );
    echo tribe_get_venue( 3885 ) // where 3885 is an event ID
    ?>

    What am I doing wrong? I’ve tried this with all plugins disabled and with the Twenty Twelve theme (using the default ecp-single-template.php file. Doesn’t work in Twenty Twelve too – does that mean I need to upgrade to Pro?

    Here’s my full code for ecp-single-template.php if you’re curious: https://pastebin.com/tfbizgMn (line 58)

    Thanks

    https://www.ads-software.com/extend/plugins/the-events-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi blogjunkie,

    Venues are not available in our non-Pro version. So, even though the function is available, there is no way to access the Venues.

    Does that make sense?

    Thread Starter David Wang

    (@blogjunkie)

    Hi Jonah, that’s what I thought, but that problem only cropped up for 1 of my events. I was able to grab the venue name for my other events, even on the free version. Anyway I’ve bought the Pro version for the additional functionality as well.

    Hey blogjunkie,

    Does that 1 event have a Venue assigned to it?

    Thread Starter David Wang

    (@blogjunkie)

    When I created my events, I filled out the fields for venue. Like I said, all of them worked except that 1 event. Might have been a glitch, because when I uploaded the site to production the venues don’t work now. Anyway I bought the Pro version like I said. Happy to get the Pro version, just confused with the weirdness. Thanks

    Hey blogjunkie, that’s strange indeed. If you’re still having issues with this in the Pro version. Please create a thread in our Pro forum: https://tri.be/support/forums/

    Thanks,
    Jonah

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tribe_get_venue() not working’ is closed to new replies.