Hi there. Imagine doing kind of an address list.
So I want to order the posts by their family names in first priority and by their first name there in second priority.
How can i enhance the following lines to get this solved?
Or is there another way?
$the_query = new WP_Query(array(
'post_type' => 'address',
'posts_per_page' => -1,
'meta_key' => 'secondname',
'orderby' => 'meta_value_num',
'order' => 'DESC'
));
Thank you, John
That was very helpful.