Queries
-
Hi Stephen,
A small help required. M using Version 1.4.2 of event organiser. I require the following all events which start before today or start today and all events that end after today or today and of a paticular category.
Here is my code
$events = eo_get_events(array(
‘showpastevents’=>true,
‘event_start_before’ => $_REQUEST[“eventon”],
‘event_end_after’ => $_REQUEST[“eventon”],
‘ondate’ => $_REQUEST[“eventon”],
‘group_events_by’ => ‘series’,
‘tax_query’=>array(
array(
‘taxonomy’ => ‘event-category’,
‘operator’ => ‘IN’,
‘field’ => ‘slug’,
‘terms’ => $_REQUEST[“slug”]
)
)
));this return all events where $_REQUEST[“eventon”] is the date and $_REQUEST[“slug”] is the category
$events = eo_get_events(array(
‘showpastevents’=>true,
‘event_start_before’ => date(‘Y-m-d’),
‘event_end_after’ => date(‘Y-m-d’),
‘ondate’ => date(‘Y-m-d’),
‘orderby’ => ‘eventstart’,
‘order’ => ‘DESC’,
‘group_events_by’ => ‘series’,
‘tax_query’=>array(
array(
‘taxonomy’ => ‘event-category’,
‘operator’ => ‘IN’,
‘field’ => ‘slug’,
‘terms’ => get_query_var(‘term’)
)
)
));this shows me events that start from today :O .
Also if there is a event that reoccurs between 1st to 30th of a month weekly on thursday then both of the above fetches the event for all days ??
I know im doing smthing wrong plz throw some light
Plz help i have a deadline ??Aalok Dhond
https://www.ads-software.com/extend/plugins/event-organiser/
- The topic ‘Queries’ is closed to new replies.