Home › Forums › MapPress Support › sort mashup pois by custom field › Reply To: sort mashup pois by custom field
July 16, 2017 at 11:02 am
#17438
Keymaster
The easiest way to do this is using the query itself. You may specify a custom field name and then use that field to order the results:
[mashup query="post_type=any&meta_key=myfield&orderby=meta_value&order=asc"]
Note that only one field is supported.
The documentation for WordPress ‘wp_query’ has more details – different ordering types, changing the order (ascending/descending) or sorting by numbers instead of characters: