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
|