Dancers Query
// WP_Query arguments
$args = array(
'post_type' => array( 'dancers' ),
'post_status' => array( 'published' ),
'category_name' => 'location_status, availability_status',
'nopaging' => false,
'paged' => 'True',
'posts_per_page' => '15',
'order' => 'DESC',
'orderby' => 'title',
);
// The Query
$dancers = new WP_Query( $args );
// The Loop
if ( $dancers->have_posts() ) {
while ( $dancers->have_posts() ) {
$dancers->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();