Order WP Post By Max or Min Meta Value Number

Order your wordpress posts query by max or min meta key value by adding: orderby => ‘meta_value_num’ and the meta_key you wish to orderby.



Show posts where checkbox meta_query is checked/true

Show all posts where the post meta field checkbox is checked requires adding a meta_query to your query arguments.