Opal-Estate-Pro/templates/shortcodes/properties.php

25 lines
577 B
PHP
Raw Normal View History

2019-09-28 05:43:09 +02:00
<?php
$args = [
'posts_per_page' => -1,
];
$query = Opalestate_Query::get_property_query( $args );
$class = 'column-item';
?>
<div class="opalesate-property-collection">
<?php if ( $query->have_posts() ): ?>
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
<div class="column-item">
<?php echo opalestate_load_template_path( 'content-property-grid-v2' ); ?>
</div>
<?php endwhile; ?>
<?php else: ?>
<?php echo opalestate_load_template_path( 'content-no-results' ); ?>
<?php endif; ?>
</div>
<?php wp_reset_postdata(); ?>