Query ongoing events only
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.
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.