Support

Home Forums Event Espresso Premium ESPRESSO_TABLE shortcode not displaying venue info

ESPRESSO_TABLE shortcode not displaying venue info

Posted: July 24, 2012 at 7:38 am

Viewing 3 reply threads


gkordek

July 24, 2012 at 7:38 am

Hello!

I’m using EE 3.1.25. I have defined venues and assigned them to events. On event page all venue information is displayed just fine, but when using ESPRESSO_TABLE shortcode to display table of upcoming events, all venue information is missing (address, city, state).

How can I fix this?


Josh

  • Support Staff

July 24, 2012 at 5:25 pm

The [ESPRESSO_TABLE] template was developed for use with the original venue manager. To get the newer venue manager to work, there would need to be a little bit of hacking.

So you could either switch to using the older venue manger (by turning the venue manager off in Event Espresso>General Settings) or create a venue shortcode by dropping a function like this one into the custom_functions.php file.

Then alter the city table cell in the espresso_table.php file to use the new shortcode:

<?php echo do_shortcode('[ESPRESSO_VENUE_CITY event_id="'.$event->id.'"]');?>


gkordek

July 26, 2012 at 5:01 am

In my case it makes more sense to turn off the venue manager since events take place in many “random” places.

Thank you for fast reply!


Eric Quan

September 21, 2012 at 1:02 am

What do I have to change to the code you put in the function.php to make it so I can see the address and state rather than the city.

I want my table to pull address and state as well as the city from the venue manager for my event.

Viewing 3 reply threads

The support post ‘ESPRESSO_TABLE shortcode not displaying venue info’ 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