Ever thought about to use your (remote) CalDav Calendar(s) as an automatic data source for your favourite WP Calendar Plugin ?
Searched for a Plugin that would provide this functionality in the WP Plugins Directory and found nothing useful ?
Well, in case of ‘Yes’ to both questions, this is for You 🙂 .
Just read the whole story at https://hoernerfranzracing.de/werner/kde-linux-web/wp-caldav2ics to check out if this will fit your needs…
And yes, Calendar(s) is correct from Version 1.1.0 – you are no longer limited to just ONE Calendar Source !
FROM YOUR WORDPRESS DASHBOARD
- Visit ‘Plugins > Add New’
- Search for ‘wp-caldav2ics’, select ‘Install’
- Activate wp-caldav2ics from your Plugins page.
- Go to the Plugin Admin Page and provide the required Settings, then press ‘Save Changes’
- Check correct working ( = ICS File created from your CalDav Calendar at the desired Intervals)
- If anything goes wrong, re-check your Settings, enable Logging, check WP Cron Events to have bl_cron_hook running as planned, use https://wordpress.org/plugins/wp-crontrol (or similar Plugin) for that
- Download wp-caldav2ics.zip .
- Unpack the downloaded zip File and upload the ‘wp-caldav2ics’ directory to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…)
- proceed with Steps #3 to #6 from above
- git clone https://github.com/wernerjoss/wp-caldav2ics
- Upload Directory wp-caldav2ics to your WP Installion, usually ‘wp-content/plugins’
- proceed with Steps #3 to #6 from above
Alternatively, you can also download the zip File from the GitHub Page, but note: this one will be named wp-caldav2ics-master.zip
and will unpack to a folder named wp-calda2ics-master.
This will have to be renamed to wp-caldav2ics before uploading !
In case your Installation is from the WP Directory and you want to try the Development Version from
GitHub zip Download, you can also just upload all Files (including those in Subdirectories!) from the unpacked Folder wp-calda2ics-master to wp-content/plugins/wp-caldav2ics
How can I see if the .ics File has been created ?
Just click on the link provided on the Admin Page after having pressed ‘Save Changes’ button
How can I see if the Cron Job creating the .ics File is correctly scheduled ?
Install WP Crontrol and check scheduled Cron Jobs, see screenshot #2
My Caldav Calendar URL is correct, but not accepted in the Backend
Make sure the URL is not an IP Address in the 192.168.xx Range (or other Local Network) as this is not accepted by the URL Validation function.
Rather add this Address to your /etc/hosts File and associate it with a host Name.
Upon Submit of Server URL and Credentials in the Backend, I get an Error Message stating my Server’s response is invalid and cannot be parsed
This means exactly what is stated: Unfortunately, it turns out that CalDav Servers often vary significantly in the Structure of their response.
Currently supported are the following Servers:
– Synology Nas
So, if you run into this issue, you can:
– Open an Issue on the support Page: https://wordpress.org/support/plugin/wp-caldav2ics providing the contents of the Logfile and hope for getting it fixed (which usually means providing access to such a brand of Server you are using)
– fix it yourself following the famous Motto ‘use the source, Luke’ 🙂 – in that case, patches are welcome !
13.12.20: Tested with WP 5.6
20.11.19: replace XML Parser for server response with simple line-by-line parsing from https://github.com/wernerjoss/caldav2ics, add Warning if no valid Ical Data found in Server Response
26.06.19: replace URL Validation wp_http_validate_url() with esc_url_raw() to avoid local hosts rejection
Fixed Multi-Calendar ICS File save issue
Added Multi-Calendar Function, that is, you can now convert multiple Calendars at once (see Screenshot #3)
moved Backend styles to separate File (css/style.css)
Fixed missing VTIMEZONE data in Calendar Properties
Completed german Translation for WP Directory
Tagged Stable Version
Fix another alternative Server Response Issue (mailbox.org/Open Xchange)
Strip Username/Password from Logfile
Fix alternative Server Response Issue (Synology NAS)
Plugin also tested with ClassicPress
Improved Description, Tested with WP 5.0
- Initial Revision