How to `’orderby’ => ‘meta_value_num’` in a series of orderby parameters

The documentation for WP_Query indicates that ordering by meta value is limited to one meta key and requires the meta_key parameter (untested):

$results = new WP_Query( array(
    'meta_key' => 'wpcf_catalogue_number',
    'orderby'  => array(
        'meta_value_num' => 'ASC',
    ),
) );

If you want additional sorting, you’ll need to sort the result ($results->posts) using PHP (untested):

$sort__formats = array();
// Other sorting arrays.

foreach ( $results->posts as $post ) {
    $formats[] = get_post_meta( $post->ID, 'format', true );
    // Other values added to sorting arrays.
}

array_multisort( $results->posts, $sort__formats, SORT_ASC, ... );

This won’t be highly performant, so you’ll likely want to consider a more performant approach, like combining all the meta values into one, and sorting off of that.

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino