prop_query
// WP_Query arguments
$args = array(
'post_type' => array( 'properties' ),
'post_status' => array( 'any' ),
'nopaging' => false,
'posts_per_page' => '1',
'posts_per_archive_page' => '4',
'ignore_sticky_posts' => true,
'order' => 'ASC',
'orderby' => 'name',
);
// The Query
$prop_query = new WP_Query( $args );
// The Loop
if ( $prop_query->have_posts() ) {
while ( $prop_query->have_posts() ) {
$prop_query->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();