Home › Forums › Welcome! › Pre-Sales Questions › Venue not included in ICS export
- This topic has 4 replies, 2 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
April 25, 2016 at 7:54 am #1106632
Gene
GuestTh venue is not included in an ICS export in core calendar. Is that by design or a bug? Is it the same in Calendar Pro?
April 25, 2016 at 8:56 am #1106669George
ParticipantHey Gene,
This is by design, currently. The ICS exports only export events, even with PRO active on the site.
Exporting venues and organizers themselves can only be done with the WordPress export tools, as described on this knowledgebase article for example → https://theeventscalendar.com/knowledgebase/using-wordpress-export-tools-to-migrate-events-content/
Cheers!
GeorgeApril 25, 2016 at 9:21 am #1106684Gene
GuestThanks George, What I meant is that the venue name is not included in the location/address field. Seems like this would be important to have in a calendar entry to make sure the user could find the venue. -Gene
April 25, 2016 at 4:12 pm #1106868George
ParticipantHey Gene,
Thanks for clarifying this—to my knowledge it was a conscious decision to leave the Venue Name out of the .ics format’s LOCATION file field, because that field is used for very literal geo-mapping and such. And addresses in a formal sense don’t have a “name”—just the raw address information like the street address, city, state, country, zip.
You can only modify this by modifying core plugin code, which I do not recommend, but it is possible.
We cannot help with code customizing, so you will have to take the reins on this sort of custom coding project, but just to try and help get you started, you can modify the output of the LOCATION .ics files generated by our plugins by heading to this file within The Events Calendar:
the-events-calendar/src/Tribe/iCal.phpScroll down to around line 279 or so of this file, and you’ll see the code that generates the .ics filed LOCATION data field. It looks like this:
// add location if available
$location = $tec->fullAddressString( $event_post->ID );
if ( ! empty( $location ) ) {
$str_location = str_replace( array( ',', "\n" ), array( '\,', '\n' ), html_entity_decode( $location, ENT_QUOTES ) );
$item[] = 'LOCATION:' . $str_location;
}
Not sure how to add the venue name? You can try using a function like tribe_get_venue( $event_post->ID ). If you need further assistance from there, you’ll unfortunately have to turn to a professional developer for some hands-on help. We have a list of great developers here → http://m.tri.be/18k1 (and have no affiliation with any of these folks—they’re simply some well-respected names in the community that we’ve compiled to share).
Cheers!
GeorgeMay 10, 2016 at 9:35 am #1112769Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Venue not included in ICS export’ is closed to new replies.
