Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114 How To Display Venue Title on Custom Template | Event Espresso - Staging Server
Hello EE crew,
I am working on modifying the espresso_table.php custom template to display my items in a nice list (I am already using the event list template on a custom widget). I need to figure out how to get the venue title to display within the espresso_table file. I have tried several different options so far including code copied from the event list template(which displays the venue title properly). These options include but are not limited to:
The <?php echo $event_venue; ?> and <?php echo do_shortcode(‘[ESPRESSO_VENUE event_id=”‘.$event_id.'”]’);?> have successfully displayed all venue info including maps for all venues, but that is not even close to what I am trying to show.
How can I get the venue name to display on the espresso_table.php template or any custom files template for that matter. Perhaps it is missing a variable toward the top of the template? Any and all help is greatly appreciated.
The espresso_table.php template makes use of the old venue manager, which is different than the new venue manager that stores venue info in their own database table. The old venue manager stores venue info inside the events_detail table.
So if you use the old venue manager, the espresso_table template wouldn’t need much in the way of modifications to display venue info. You can display the venue title with:
<?php echo $event->venue_title; ?>
If you’re using the new venue manager, you could add a custom query in the template to grab the venue details (which is what event_list.php does, you can see how in lines 120 and 130 in event_list.php) or use the ESPRESSO_VENUE shortcode like this:
The code you posted worked perfectly. Thank you so much!
-Dan
Viewing 2 reply threads
The support post ‘How To Display Venue Title on Custom Template’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.