Certain Category Not Excluding in tribe_get_events()

Home Forums Calendar Products Events Calendar PRO Certain Category Not Excluding in tribe_get_events()

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #782931
    Cliff
    Participant

    I’m thinking this may be due to some wonkiness in the database. I’m going to check and I’ll report back.

    #782939
    Barry
    Member

    Cool, no worries 🙂

    #798454
    Cliff
    Participant

    I’ve managed to get around this issue, but let me explain what I did and see if we can hunt this down. WP Engine insisted it was too hard to figure out.

    I created a new category and updated the code to filter by that new category.
    I ran an update on the term_relationships table to change everything associated with the old category to the new one.
    On events series, I had to de-select the category, save, and then re-save with the new category.

    It now…works. Any thoughts?

    #798570
    Barry
    Member

    I’m not sure, honestly.

    There was a difference between what you and I were seeing anyway – for me, so long as I ran the code some point after the init action (and tested against slugs rather than names) it retrieved the expected results, whether using a set of test events or with the database dump you provided.

    So, really, pretty puzzling – but whatever the cause it sounds like you’ve cracked it which is awesome 🙂

    #824606
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 5 posts - 16 through 20 (of 20 total)
  • The topic ‘Certain Category Not Excluding in tribe_get_events()’ is closed to new replies.