Support

Home Forums Event Espresso Premium How to pull in venue information for an event

How to pull in venue information for an event

Posted: January 16, 2013 at 8:31 am


TFA

January 16, 2013 at 8:31 am

I’m using the custom files espresso_table.php particularly:

function espresso_get_table($sql){
global $wpdb, $org_options;
//echo 'This page is located in ' . get_option( 'upload_path' );
$event_page_id = $org_options['event_page_id'];
$currency_symbol = $org_options['currency_symbol'];
$events = $wpdb->get_results($sql);
$category_name = $wpdb->last_result[0]->category_name;
$category_desc = $wpdb->last_result[0]->category_desc;
$display_desc = $wpdb->last_result[0]->display_desc;

How do I make sure the venue information is pulled in as well so that I can use $event->venue_title; ?


Dean

January 16, 2013 at 11:29 pm

Hi Kris,

I found the easiest way to do this is to echo the venue shortcode

<?php echo do_shortcode('[ESPRESSO_VENUE title_wrapper="p" show_image="false" show_description="false" show_address="false" show_additional_details="false" show_google_map_link="false" show_map_image="false"]'); ?>


TFA

January 17, 2013 at 10:11 am

Thanks Dean!

The support post ‘How to pull in venue information for an event’ 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.

Event Espresso