Home Forums Event Espresso Premium Trying to add ical link to Custom Calendar Table Template

Trying to add ical link to Custom Calendar Table Template

Posted: May 4, 2014 at 1:52 pm

Greg Davis

May 4, 2014 at 1:52 pm

I am creating a customized template based on the calendar table template add-on. I have it working for the most part, but one thing I cannot get to work correctly is the ical link.

I have added the statement:
<?php echo apply_filters('filter_hook_espresso_display_ical', $all_meta); ?>

The link shows up okay, but the actual content of the ical file is not correct – it defaults to whatever the current day and time is and not that of the event itself. I am guessing there is something not correct with the $all_meta array parameter. I tried using others instead such as $event_meta but no luck either.

You can see it / try it here:

Is there something I am missing?


May 5, 2014 at 2:15 am

This should work

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

Basically the $event object contains all the needed data, it just needs to be typecast as an array as the ical function uses arrays not objects.

Greg Davis

May 11, 2014 at 7:49 pm

Thanks Dean, that did the trick!

The support post ‘Trying to add ical link to Custom Calendar Table Template’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Greg Davis 6 years, 2 months ago ago

Topic Tags


This topic is: resolved
Do NOT follow this link or you will be banned from the site!