Support

Home Forums Event Espresso Premium still no ical links in event posts?

still no ical links in event posts?

Posted: October 30, 2013 at 3:51 pm

Viewing 3 reply threads


Jessica Grant

October 30, 2013 at 3:51 pm

In this support topic: https://eventespresso.com/topic/ical-link-in-event-posts-does-not-work/ staff states that ical links are not available in event posts. Is this still the case? Is there no method of template or functions modification that will allow generation of an ical link in an event post (like trying to build a new $all_meta array in the single-espresso_event.php file?)? Any suggestions on where to start with that or is it just not really possible?

Thank you!


Dean

October 31, 2013 at 2:25 am

Hi,

We have not added the ical to the event posts.

You could edit the event_post.php file and add in the following

<?php echo apply_filters('filter_hook_espresso_display_ical', $all_meta); ?>

That will display the ical link.


Jessica Grant

November 4, 2013 at 3:01 pm

Thanks, Dean. I’ve tried adding that code, but When used in single-espresso_event.php the resulting ics file is not populated with the event details the way it is in event_post.php. I assume because it does not have access to the $all_meta array. Referring to my original question, is it a matter of building this array in the single-espresso_event file in order to shim this functionality into event posts instead of just in espresso events?

Thank you.


Dean

November 5, 2013 at 1:32 am

Hi Jessica,

OK, so the event_post.php does contain the $all_meta array. However, it isn’t the same data that is in the event_list.php file.

As far as I can tell, if that list from event_list.php is copied over to the event_post.php file to replace its $all_meta array the post ICAL is the same as the event ICAL (the event will need to be resaved, to refresh the post).

I’ll raise a developer ticket on this as, personally, I see no reason why these should be different arrays.

Viewing 3 reply threads

The support post ‘still no ical links in event posts?’ 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