Forum Replies Created
-
AuthorPosts
-
March 3, 2016 at 11:02 am in reply to: iCal exported file seems to have the same number of lines no matter what #1084952
David Warner
ParticipantThis is all it spits out from this URL (http://www.artintheadirondacks.com/events/?ical=1&year-feed) after the changes:
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Art in the Adirondacks – ECPv4.0.7//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Art in the Adirondacks
X-ORIGINAL-URL:http://www.artintheadirondacks.com
X-WR-CALDESC:Events for Art in the Adirondacks
END:VCALENDARMarch 2, 2016 at 5:03 pm in reply to: iCal exported file seems to have the same number of lines no matter what #1084645David Warner
ParticipantI just tried that (cleared the cache) and had the same result. I’ve left the code with the 300 set if you want to export a file from the site by clicking on the Export Listed Events button.
February 29, 2016 at 11:12 am in reply to: iCal exported file seems to have the same number of lines no matter what #1083482David Warner
ParticipantAny updates?
February 18, 2016 at 9:57 am in reply to: iCal exported file seems to have the same number of lines no matter what #1077155David Warner
ParticipantOn further examination (after putting all your new versions of the plugins up today) the problem still remains, but I have more data. I changed the number of events to view on a page from 16 to 30 thinking there might be a link. Then, I used the Export Listed Events button at the bottom of the page…It STILL only spit out 166 lines of events. So, there is something more going on in your iCal functionality than what I’m trying to do by showing a year’s worth of events.
February 17, 2016 at 12:16 pm in reply to: iCal exported file seems to have the same number of lines no matter what #1074625David Warner
ParticipantThat’s the same code, I just took the comments out. However, I copy and pasted it in. Both links (either the year or your standard one I listed above – please try them yourself) still give only about 162-166 lines of events.
February 16, 2016 at 10:08 am in reply to: iCal exported file seems to have the same number of lines no matter what #1073898David Warner
ParticipantHere’s the code from the link:
<?php
/*
Plugin Name: AITA
Description: Allows the Modern Tribe Events Calendar to pull a one year iCal feed.
Version: 0.1
License: GPL
Author: David E. Warner
Author URI: http://www.artintheadirondacks.com
*/
add_action( ‘pre_get_posts’, ‘cliff_tribe_custom_time_range_ics_export’ );
function cliff_tribe_custom_time_range_ics_export( WP_Query $query ) {
if ( ! isset( $_GET[‘ical’] ) || ! isset( $_GET[‘year-feed’] ) ) {
return;
}
if ( ! isset( $query->tribe_is_event_query ) || ! $query->tribe_is_event_query ) {
return;
}
$query->set( ‘eventDisplay’, ‘custom’ );
$query->set( ‘start_date’, ‘now’ );
$query->set( ‘end_date’, ‘+ 365 days’ ); // http://php.net/manual/en/datetime.formats.relative.php
$query->set( ‘posts_per_page’, -1 );
}
?> -
AuthorPosts
