Support

Account

Home Forums General Issues How to order by custom field then post date? Reply To: How to order by custom field then post date?

  • You need to create a meta_query that includes a clause and then use that clause in your orrderby. See the last code snippet in the orderby section https://codex.wordpress.org/Class_Reference/WP_Query. Of interest here is the “city_clause” example.