Home › Forums › Welcome! › Pre-Sales Questions › Need to Display Venue Description on Single Events Template
- This topic has 4 replies, 2 voices, and was last updated 8 years, 2 months ago by
Jaime Marchwinski.
-
AuthorPosts
-
March 5, 2018 at 7:55 am #1470088
Christopher
GuestHello,
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.March 6, 2018 at 6:45 am #1470939Jaime Marchwinski
KeymasterHi 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
March 6, 2018 at 6:54 am #1470950Christopher
GuestThanks 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.
March 6, 2018 at 6:56 am #1470953Christopher
GuestLooks like the php was blocked. I used this “the_field(‘venue_description’, $ven_id);” inside php tags.
March 6, 2018 at 7:01 am #1470962Jaime Marchwinski
KeymasterGlad 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!
-
AuthorPosts
- The topic ‘Need to Display Venue Description on Single Events Template’ is closed to new replies.
