Support

Account

Forum Replies Created

  • I was working through a similar issue based on the advice from this post and something like this example may work for you. In my case, it was a true/false field then a custom date.

    $args = array(
        'post_type' => 'Property', // post type 
        'meta_query' => array(
            borough_clause => array(
                'key' => 'the_borough', 
            ),
            order_clause => array(
                'key' => 'the_order',
            ),
        ),
        'orderby' => array(
            'borough_clause' => 'ASC', // assuming borough alphabetical
            'order_clause' => 'ASC' // assuming custom order is 1 2 3 etc
        ),
        'posts_per_page'   => -1, // inlcude if you want all posts
    ));
Viewing 1 post (of 1 total)