Home Forums Community Forum Event Espresso Query Modification?

Event Espresso Query Modification?

Posted: December 9, 2016 at 9:49 pm


December 9, 2016 at 9:49 pm

May u help me out in further query modification?
Hope you will 🙂

I want to use meta_query to list events on page.
Somewhat like below code.

$atts = array(
        'title' => NULL,
        'limit' => 10,
        'css_class' => NULL,
        'show_expired' => FALSE,
        'month' => NULL,
        'category_slug' => NULL,
        'order_by' => 'start_date',
        //'order_by' => 'end_date',
        'sort' => 'DESC',
        'meta_query' => array(
               'key' => 'start_date',    
               'value' => '2017-01-08 08:00:00',              
               'type' => 'DATETIME',  
               'compare' => '>=', 

I want to implement search functionality for Event Espresso and i have those fields:
State – Dropdown (How to list all state? May be Venue)
Category – Dropdown
Start Date – Datepicker
End Date – Datepicker
Keyword – input

On submit those values will be submitted and based on those , i will get filtered events that are related with those values.

So how to implement this?
Please help.
Thanks in Advance

The support post ‘Event Espresso Query Modification?’ 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.

Event Espresso