Orderby query does not work for custom fields even with meta query
I don’t believe order_clause is an acceptable orderby parameter. According to the documentation you will need to add a meta_key to your query if you want to orderby a meta_value. I have amended your query to display attorney posts where the custom field key Last name is present regardless of the custom field value. orderby … Read more