Client Query
// WP_Query arguments
$args = array (
'post_type' => array( 'clients' ),
'post_status' => array( 'publish' ),
'posts_per_page' => '-1',
);
// The Query
$client_query = new WP_Query( $args );
// The Loop
if ( $client_query->have_posts() ) {
while ( $client_query->have_posts() ) {
$client_query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();