Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2>Sold Properties</h2>
- <?php
- $args = array(
- 'post_type' => 'property',
- 'posts_per_page' => 8,
- 'meta_query' => array(
- array(
- 'key' => '_on_market',
- 'value' => 'yes',
- 'compare' => '!=',
- ),
- ),
- 'tax_query' => array(
- array(
- 'taxonomy' => 'availability',
- 'field' => 'name',
- 'terms' => array( 'Sold' ),
- ),
- )
- );
- $sold_query = new WP_Query($args);
- if ( $sold_query->have_posts() ) : ?>
- <?php propertyhive_property_loop_start(); ?>
- <?php while ( $sold_query->have_posts() ) : $sold_query->the_post(); ?>
- <?php ph_get_template_part( 'content', 'property' ); ?>
- <?php endwhile; // end of the loop. ?>
- <?php propertyhive_property_loop_end(); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement