Help Desk

Recurring Events and Custom WP_Query

  • Posts: 31 Topics: 7 Answers: 1
    | Permalink

    Hi,
    I have a custom query on my homepage displaying the most recent posts from post type => tribe_events and orderby => date …… It displays the events correctly, however it doesn’t display the ones that are “recurring” . Even if I seperate one of the recurring events out as a single event, it still doesn’t show in this loop query I have.

    Are recurring posts given a different post type? Not sure why it’s not able to display the recurring event posts in this loop. Here’s the query I have currently – http://pastebin.com/PAMFd2xK

    Posts: 31 Topics: 7 Answers: 1
    | Permalink

    Also, yes, the recurring events all have a category designation of “Homepage Slider” which is what I am using in my query.

    Anyone with any help would be great, thanks

    Posts: 83 Topics: 2 Answers: 12
    | Permalink

    Hey Brian,

    I asked john, one of our devs to reply.

    Posts: 20 Answers: 4
    | Permalink

    Hi Brian,
    Couple things. One – the event categories are a custom taxonomy (tribe_events_cat), not the normal categories. Also, you might have better luck if you use the sp_get_events() template tag instead of building the query (its just a thin wrapper around get_posts). Let me know if this doesn’t help.

    Posts: 31 Topics: 7 Answers: 1
    | Permalink

    Thanks for your reply John. Can’t seem to get it working using sp_get_events()

    Can you post a small sample query and loop that you’d recommend using please?

    Thanks

    Posts: 31 Topics: 7 Answers: 1
    | Permalink

    I ended up using the following: http://pastebin.com/iiCKxspQ

    It’s working well now

    Thanks

    Posts: 2
    | Permalink

    Brian,

    I’m trying to do the same thing, though I’m not sure what to do with your code. Would you mind posting your whole query?

    Thanks.

    Posts: 2
    | Permalink

    Actually, I got it to work. Thanks.

    Posts: 4278 Topics: 105 Answers: 467
    | Permalink

    Glad to see you guys got this taken care of. Will be useful for others coming to do a search here for related issues down the road.