Support

Home Forums Events Calendar Add-on Can the calendar display what city/location each event is held in?

Can the calendar display what city/location each event is held in?

Posted: September 30, 2013 at 4:46 pm

Viewing 4 reply threads


d_reid

September 30, 2013 at 4:46 pm

Can the event espresso calendar display the city alongside the events? The short code will display only the event title and times, but I would like to add the event city as well.

Let me know if that can be done!

Thank you.

  • This topic was modified 11 years, 1 month ago by Dean. Reason: moved to calendar forum


Sidney Harrell

October 1, 2013 at 5:33 pm

I tried going into espresso-calendar.php line 364 and changing it to:

$eventArray['description'] = espresso_format_content($event->event_desc) . do_shortcode('[ESPRESSO_VENUE id="' . $event->id . '" show_map_image=false]');

and it seemed to work ok.


d_reid

October 8, 2013 at 4:09 pm

Currently my line 364 looks like:
//Supports 3.2 short descriptions
if (isset($org_options[‘template_settings’][‘display_short_description_in_event_list’]) && $org_options[‘template_settings’][‘display_short_description_in_event_list’] == true) {
$eventArray[‘description’] = array_shift(explode(‘<!–more–>’, $eventArray[‘description’]));

Will your code be replacing this in its entirety?


Dean

October 9, 2013 at 2:07 am

Hi,

I believe Sidney is referring to the code block above it, here it is with the new code added

//Gets the description of the event. This can be used for hover effects such as jQuery Tooltips or QTip
		if (isset($espresso_calendar['show_tooltips']) && $espresso_calendar['show_tooltips'] == true) {
			//$eventArray['description'] = espresso_format_content($event->event_desc);
			$eventArray['description'] = espresso_format_content($event->event_desc) . do_shortcode('[ESPRESSO_VENUE id="' . $event->id . '" show_map_image=false]');
		}


d_reid

October 10, 2013 at 10:42 am

Thank you!

Viewing 4 reply threads

The support post ‘Can the calendar display what city/location each event is held in?’ 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