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
Can the calendar display what city/location each event is held in? | Event Espresso - Staging Server

Support

Home Forums Calendar 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


Dennis 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, 3 months ago by Dean. Reason: moved to calendar forum


Sidney Harrell

  • Support Staff

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.


Dennis 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

  • Support Staff

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]');
		}


Dennis 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 - Staging Server