Query ongoing events only Post author By Liana Post date Home › Forums › Calendar Products › Events Calendar PRO › Query ongoing events only This topic has 4 replies, 3 voices, and was last updated 8 years, 6 months ago by Jonah. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts November 9, 2011 at 2:56 pm #10848 LianaMember Hey posted this on twitter and was directed here (which makes a lot of sense) Pretty much I need to query ongoing and single day events separately, I see in the docs you can check whether is/not ongoing but I can’t see any docs surrounding querying this directly. Current code (simple) is as follows: http://pastebin.com/1Q0u0z38 Pretty much what I need is the proper syntax for $events = tribe_get_events(‘ongoing’ => ‘true’); Hope i’ve explained myself properly. Thanks November 9, 2011 at 3:03 pm #10849 RobKeymaster Thanks for posting this, Liana. Makes perfect sense. Good question – that’s a bit outside my area of expertise but I’ve got our developer Jonah looking at it now; expect a response over the next 24 hours. November 9, 2011 at 5:04 pm #10872 LianaMember I didn’t know whether to split off ask on this thread but new question. I need to grab the category name or ID for sorting purposes too, is there a tribe_get_category(); type function? I found tribe_meta_event_category_name() in the docs but the params seem to be from the url rather than being able to feed an ID directly into it. I have also looked through tribe_get_events / tribe_get_event_meta and neither return it. Any ideas? November 10, 2011 at 9:34 am #10899 RobKeymaster Got Jonah looking at this now. Thanks Liana 🙂 November 10, 2011 at 1:32 pm #10925 JonahParticipant Hi Liana, Have you tried using the tribe_is_multiday() function wrapped around your query? For example: http://pastebin.com/SUNPSidX Hopefully that helps. – Jonah Author Posts Viewing 5 posts - 1 through 5 (of 5 total) The topic ‘Query ongoing events only’ is closed to new replies.