Home › Forums › Calendar Products › Events Calendar PRO › Recurring Events and Custom WP_Query
- This topic has 8 replies, 5 voices, and was last updated 12 years, 5 months ago by Rob.
-
AuthorPosts
-
October 14, 2011 at 10:23 am #9690BrianParticipant
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
October 14, 2011 at 10:24 am #9691BrianParticipantAlso, 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
October 14, 2011 at 11:38 am #9697Shane PearlmanMemberHey Brian,
I asked john, one of our devs to reply.
October 15, 2011 at 12:51 pm #9725JohnMemberHi 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.October 16, 2011 at 8:20 am #9747BrianParticipantThanks 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
October 16, 2011 at 8:42 am #9748BrianParticipantNovember 1, 2011 at 1:10 pm #10416AdamParticipantBrian,
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.
November 1, 2011 at 1:15 pm #10417AdamParticipantActually, I got it to work. Thanks.
November 1, 2011 at 4:36 pm #10434RobMemberGlad 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.
-
AuthorPosts
- The topic ‘Recurring Events and Custom WP_Query’ is closed to new replies.