Forum Replies Created
-
AuthorPosts
-
jdonovan
ParticipantThis reply is private.
jdonovan
ParticipantWell – that didn’t actually work after-all. The new Event Posts are being added with the current date, rather than the date defined … so I’m back to square one.
The $args array includes:
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[EventStartDate] => ‘2017-08-12 00:00:00’
[EventEndDate] => ‘2017-08-12 00:00:00’
[EventStartHour] => 12
[EventStartMinute] => 00
[EventStartMeridian] => am
[EventEndHour] => 12
[EventEndMinute] => 00
[EventEndMeridian] => am
[EventShowMap] => 1Yet the Event Date in the new Event Post is the current date – July 28th.
This is getting really frustrating now.
Thanks for any/all help on this.
-johnjdonovan
ParticipantWell – It appears that if you beat on something long enough, things will work.
I would have never guessed this was required, but it appears that the data string must be wrapped in quotes within the $args array element. Changing the elements to:
‘EventStartDate’=> “‘”.date(“Y-m-d H:i:s”, strtotime($this->showDate.” 00:00:00″)).”‘”,
‘EventEndDate’ => “‘”.date(“Y-m-d H:i:s”, strtotime($this->showDate.” 00:00:00″)).”‘”,appears to have solved the problem.
Hopefully this level of will prevent someone from running in circles like I have for the past 3 hours.
-john
jdonovan
ParticipantGood morning.
I would appreciate some detail for the solution to the problem described above and in other posts. How would one go about “using the filter tribe_events_pre_get_posts” to produce an iCal subscription that would include *ALL* events – not just those for the current view? -
AuthorPosts
