All Questions
2
questions
1
vote
2
answers
1k
views
How to orderby meta_value_num with dollar ($) sign
The custom fields all have prices including $ signs, and a dot as separator.
$theQuery = new WP_Query(array(
'orderby' => 'meta_value_num',
'meta_key' => 'price',
'order' => ASC
));
All ...
0
votes
1
answer
270
views
How to "orderby" the first array in a meta_query that uses multiply keys?
My query is currently sorting by end date. How can I make it so it will sort by the start date?
$args = array ('post_type' => 'events',
'meta_query' => array(
...