Hi
I need to fetch all the upcoming events from all the categories except 1 named “private” -> ID(574)
here is the code I am using and able to get the upcoming events but unable to filter it from Private category
$events = EEM_Event::instance()->get_all(
array(
‘limit’ => 10,
‘QST_wp_user’ => array(‘in’, array(4)),
‘order_by’ => array( ‘Datetime.DTT_EVT_start’ => ‘ASC’ ),
‘group_by’ => ‘EVT_ID’,
array(
‘Datetime.DTT_EVT_end’ => array( ‘>=’, current_time(‘mysql’) ),
‘status’ => ‘publish’,
)
)
);
Hi
I need to fetch all the upcoming events from all the categories except 1 named “private” -> ID(574)
here is the code I am using and able to get the upcoming events but unable to filter it from Private category
$events = EEM_Event::instance()->get_all(
array(
‘limit’ => 10,
‘QST_wp_user’ => array(‘in’, array(4)),
‘order_by’ => array( ‘Datetime.DTT_EVT_start’ => ‘ASC’ ),
‘group_by’ => ‘EVT_ID’,
array(
‘Datetime.DTT_EVT_end’ => array( ‘>=’, current_time(‘mysql’) ),
‘status’ => ‘publish’,
)
)
);
The support post ‘Need to get the upcoming events and exclude all the events from private category’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.