Cliff

Forum Replies Created

Viewing 11 posts - 46 through 56 (of 56 total)
  • Author
    Posts
  • in reply to: Problem updating recurring events #31826
    Cliff
    Participant

    Kyle, yes! Fixed things right up for me.

    in reply to: Problem updating recurring events #31251
    Cliff
    Participant

    Thanks, Barry. I hope 3.0 is coming out soon since this breaks some major functionality. 🙂

    in reply to: Problem updating recurring events #31179
    Cliff
    Participant

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

    Cliff
    Participant

    Any updates on this? I would prefer not to solve this myself as I know my solution won’t be as graceful or future-proof.

    Cliff
    Participant

    Thanks, Joyce. Anything would be great at this point. 🙂

    Cliff
    Participant

    Joyce,

    All of that’s confirmed. The site’s running The Events Calendar and The Events Calendar Pro. Thanks!

    in reply to: 1970 Bug #18091
    Cliff
    Participant

    For 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.

    in reply to: Reoccuring event shows multiple times in loop #17935
    Cliff
    Participant

    Hey 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.

    in reply to: Reoccuring event shows multiple times in loop #17850
    Cliff
    Participant

    Haha, I know now! I didn’t see any instructions one way or another, and this was my first post. Apologies.

    in reply to: Reoccuring event shows multiple times in loop #17827
    Cliff
    Participant

    Well, the backticks were supposed to indicate code, so sorry—no indentation was kept. I hope that still makes sense.

    in reply to: Reoccuring event shows multiple times in loop #17826
    Cliff
    Participant

    I’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.

Viewing 11 posts - 46 through 56 (of 56 total)