Forum Replies Created
-
AuthorPosts
-
Kyle
ParticipantJonah;
Oh I see good to know. I am just getting into the revision part of my site, so I didn’t know that. I am trying to add a feature for customers/event providers to submit changes to one another and if approved it updates the event. If revisions don’t support meta though it would probably have to be a new cpt then, so looks like I’ll have to build it from scratch. Thanks for your time and help!
Kyle
Kyle
ParticipantJonah;
I am holding off on running 3.5 for a few weeks until a couple waves of bug fixes, so I’m not sure.
Kyle
Kyle
ParticipantOkay, apparently the source of the problem was the code added for supporting revision tracking, which was kind of in the middle of troubleshooting this problem so I got them mixed up, my bad : https://theeventscalendar.com/support/forums/topic/view-event-revision-history-in-admin/
Although that is kind of its own problem. When adding revision support, you cannot update event meta(e.g. start/end time) normal wp meta still updates though. New topic?
Kyle
Participantboth
Kyle
ParticipantHi, yes the original problem was the time meta getting wiped out whenever updating event from the admin
Kyle
ParticipantHave you guys come up with any solution to the problems with the event dates? At this point I cannot create events through the admin, the date automatically reverts back to today’s date. Is there someway to get a copy of 2.0.9
December 8, 2012 at 7:46 am in reply to: Potential Bug: blockRoleFromAdmin blocks ajax for those roles #29161Kyle
ParticipantCode is courtesy of the WP Block Admin plugin http://wordpress.org/extend/plugins/wp-block-admin/
Kyle
ParticipantOkay, clearing my cache did it. Thanks for your help!
Kyle
ParticipantInside my functions file. Strange
Kyle
ParticipantHey, thanks for the reply
I tried adding:
add_action(‘init’, ‘tribe_revision_support’);
function tribe_revision_support() {
add_post_type_support( ‘tribe_events’, ‘revisions’ );
}But didn’t see a result
Kyle
ParticipantOkay, so after playing with the tribe_update_event function for awhile it seems that you simply have to pass the entire date/time variable back in the correct format each time, or it will reset the date. So something like this http://pastie.org/5482011 will work. It is essentially like using the tribe_create_event function each time.
Kyle
ParticipantHey
I switched over to wp_update_post, but I will test with tribe_update_event
Kyle
ParticipantHey Sam, thanks for following up on this. I think I actually was able to figure out part of the problem. I had a separate function that was hooked into save_post which was causing an infinite loop (but only with events, which is why I thought it was with tribe_update_event). I appreciate you taking the time with this
Kyle
ParticipantJonah;
Okay great, thanks for your help.
Kyle
Kyle
ParticipantI also tried to pass the times back to the post inside the function.
-
AuthorPosts
