jdonovan

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: tribe_create_event() EventStartDate incorrect #1328544
    jdonovan
    Participant

    This reply is private.

    in reply to: tribe_create_event() EventStartDate incorrect #1327707
    jdonovan
    Participant

    Well – 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] => 1

    Yet 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.
    -john

    in reply to: tribe_create_event() EventStartDate incorrect #1327668
    jdonovan
    Participant

    Well – 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

    in reply to: iCal only pushing 1 month at a time #798695
    jdonovan
    Participant

    Good 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?

Viewing 4 posts - 1 through 4 (of 4 total)