/ Published in: PHP
Requires filter added in ECP 2.1
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
add_filter('tribe_ical_feed_item','tribe_add_attachment_to_ical', 10, 2); function tribe_add_attachment_to_ical($item, $event){ 'post_type' => 'attachment', 'numberposts' => -1, 'post_status' => null, 'post_parent' => $event->ID ); $size = 'full'; $attachments = get_posts($args); if ($attachments) { foreach ($attachments as $attachment) { $item[] = "ATTACH:".wp_get_attachment_image_src($attachment->ID, $size); } } return $item; }
URL: http://tri.be/support/forums/topic/ical-export-does-not-include-attached-images/