Support

Home Forums Events Calendar Add-on Pre Release Event Calendar

Pre Release Event Calendar

Posted: July 15, 2014 at 3:57 pm


Emma Hartsfield

July 15, 2014 at 3:57 pm

I love that you can use the add to cart functionality in the pre release calendar, thank you!

I would like to display the venue information in the pop up on the calendar view. I have seen other questions where this has been answered but the code on the pr calendar is much different that what has been suggested previously.

WP 3.9.1, EE3, PR Calendar, custom templates, members, multiple, recurring, dropdown template, ticketing


Dean

July 16, 2014 at 2:42 am

Hi,

In the espresso-calendar/espresso-calendar.php file, at approx line 707 it reads

$events[ $cntr ]['description'] = reset( explode( '', $events[ $cntr ]['description'] ));

change that to something like

$events[ $cntr ]['description'] = reset( explode( '', $events[ $cntr ]['description'] )) . do_shortcode('[ESPRESSO_VENUE show_map_image=false]');

and it will display the venue data. Use the parameters in the ESPRESSO_VENUE shortcode (https://eventespresso.com/wiki/shortcodes-template-variables/#venue) to show and hide the different aspects such as the map.

Please note, updates will over write your changes.


Emma Hartsfield

July 16, 2014 at 9:50 am

Thanks! I had to modify your code a little but it is working great now.

In calendar espresso-calendar.php change line 707 from

$events[ $cntr ][‘description’] = reset( explode( ”, $events[ $cntr ][‘description’] ));

to

$events[ $cntr ][‘description’] = reset( explode( ‘<!–more–>’, $events[ $cntr ][‘description’] )). do_shortcode(‘[ESPRESSO_VENUE show_image=false show_address=false show_additional_details=false show_map_image=false show_google_map_link=false]’);

The support post ‘Pre Release Event Calendar’ 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