Custom post status query
// WP_Query arguments $args = array( 'post_type' => array( 'loan' ), 'post_status' => array( 'ferdig' ), 'nopaging' => false, 'posts_per_page' => '1000', 'order' => 'ASC', 'orderby' => 'date', ); // The Query $query = new WP_Query( $args );