Support

Home Forums Community Forum Event Espresso Query Modification?

Event Espresso Query Modification?

Posted: December 9, 2016 at 9:49 pm


hardik123

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.

<pre>
$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(
             array(
               'key' => 'start_date',    
               'value' => '2017-01-08 08:00:00',              
               'type' => 'DATETIME',  
               'compare' => '>=', 
             ),
           )
      );
</pre>

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.

If you would like help from the Event Espresso staff, then please purchase a support licenseย right now so you can create a support topic in our premium support forums.

Status: closed

Updated by  hardik123 2 years, 9 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!