Forum Replies Created
-
AuthorPosts
-
Cliff
ParticipantKyle, yes! Fixed things right up for me.
Cliff
ParticipantThanks, Barry. I hope 3.0 is coming out soon since this breaks some major functionality. 🙂
Cliff
ParticipantLooking at it, it looks like I fixed a couple of typos to make things work again. On lines 88 and 107, where option:selected are used, it seems there were extra quotation marks. I changed these from:
$('[name="recurrence[type]"] option:selected"').val()and$('[name="recurrence[end-type]"] option:selected"').val()to$('[name="recurrence[type]"] option:selected').val()and$('[name="recurrence[end-type]"] option:selected').val(). Thoughts?August 20, 2012 at 2:19 pm in reply to: After Deleting Recurring Event Instance, Editing 'All Future' Recreates Them #23831Cliff
ParticipantAny updates on this? I would prefer not to solve this myself as I know my solution won’t be as graceful or future-proof.
August 16, 2012 at 8:19 am in reply to: After Deleting Recurring Event Instance, Editing 'All Future' Recreates Them #23739Cliff
ParticipantThanks, Joyce. Anything would be great at this point. 🙂
August 12, 2012 at 5:17 am in reply to: After Deleting Recurring Event Instance, Editing 'All Future' Recreates Them #23574Cliff
ParticipantJoyce,
All of that’s confirmed. The site’s running The Events Calendar and The Events Calendar Pro. Thanks!
Cliff
ParticipantFor anyone else that comes here looking to fix a ‘1970’ bug, I was using get_permalink() in a custom loop of events and limit recurring ones to one output—I corrected it by using tribe_get_event_link($post) to get the first date’s link.
Cliff
ParticipantHey Rob. I think I’m good—just wrote some conditions expanding on the above to only show recurring events once when using them in a loop. It might be useful for a future native filter of some type, but seems beyond the scope of this thread.
Cliff
ParticipantHaha, I know now! I didn’t see any instructions one way or another, and this was my first post. Apologies.
Cliff
ParticipantWell, the backticks were supposed to indicate code, so sorry—no indentation was kept. I hope that still makes sense.
Cliff
ParticipantI’m not sure if this is helpful, but I’ve found a way to detect if an event is recurring or not. The variable $recurring will be empty if the event is a one-time event. The meta field _EventRecurrence holds the serialized data on recurrence, so:
`$recurring = get_post_meta($post->ID, ‘_EventRecurrence’, true);
if ( $recurring ) {
$holdrecur = maybe_unserialize($recurring);
$ifrecur = $holdrecur[‘type’];
if ( $ifrecur == ‘None’ ) {
$recurring = ”;
}
}`Mostly, there’s no entry in the database for a one-time event, so $recurring will be empty. Sometimes, though, it inserts a row explicitly saying there’s no recurrence. We check for that by using WP’s native unserialize, then find the ‘type’. If it’s set to ‘None’, we’ll reset $recurring to empty.
-
AuthorPosts
