Need to Display Venue Description on Single Events Template

Home Forums Welcome! Pre-Sales Questions Need to Display Venue Description on Single Events Template

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1470088
    Christopher
    Guest

    Hello,

    I’ve spent a lot of time digging through the docs and knowledge base, but can’t find a solution.

    I need to add a set of buttons to the venue details section that displays on the single-events template. The content of the buttons is unique to each venue. Ideally, I’d be able to use the shortcodes that I have included in the description section of the venue. I see can see the correct data in the _VenueDescription field in myPHPadmin, but can’t figure out how to call it on the single-event template.

    Is there an existing php function to display the venue description on a single-event? If not, is there some php that I can add to call _VenueDescription field from the database? Perhaps similar to the way that _VenuePhone or _VenueWebsite.

    If this is only capable with PRO, I’m happy to purchase. However, I’m an intern building this site for a nonprofit, so we’re trying to keep costs down.

    Thank you!
    -cb.

    #1470939

    Hi Christopher,

    Thanks so much for reaching out!

    First off, if you are interested, we do have a Nonprofit Partnership Program which grants all accepted applicants one free unsupported license to either Events Calendar PRO or Event Tickets Plus.

    In addition, I’d recommend starting off by taking a look at our Themer’s Guide, which can show you which templates can be edited and copied in order to achieve the results that you are looking for.

    You may also be interested in our Functions Archive, which can point you to the existing functions that are available to you.

    If you have any further questions related to The Events Calendar, please post on our WordPress.org forums.

    If you have any other questions related to Events Calendar PRO, let me know!

     

    Thanks,

    Jaime

    #1470950
    Christopher
    Guest

    Thanks Jaime!

    I actually finally solved the problem yesterday. I added a custom WYSWYG field (using ACF) to the Venues for my shortcodes, then edited the “the-events-calendar/src/views/modules/meta/venue.php” file with two simple lines $ven_id = tribe_get_venue_id(); and .

    I’m new to the php side of WordPress, so this was an adventure.

    Thank you for such a well-documented plugin!

    -cb.

    #1470953
    Christopher
    Guest

    Looks like the php was blocked. I used this “the_field(‘venue_description’, $ven_id);” inside php tags.

    #1470962

    Glad you were able to figure things out, you are welcome back in our support forums any time!

    Since you marked this thread as Resolved, I am going to close this thread.

    Have a great week!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Need to Display Venue Description on Single Events Template’ is closed to new replies.