<?php get_header(); if (have_posts()) { ?> <div class="post-list post-grid loading"> <?php while (have_posts()) { the_post(); ?> <?php get_template_part('content', 'property'); ?> <?php } ?> </div><!-- .post-list --> <div class="post-loader"> <a href="#" class="button button-grey"><?php _e('Load More', 'colabsthemes'); ?> </a> </div> <?php colabs_content_nav($wp_query); } get_footer();
?> <?php $latest_post = new WP_Query(array('post_type' => 'post', 'paged' => $paged)); if ($latest_post->have_posts()) { ?> <div class="post-list post-grid post-blog loading"> <?php while ($latest_post->have_posts()) { $latest_post->the_post(); ?> <?php get_template_part('content', 'post'); ?> <?php } ?> </div><!-- .post-list --> <div class="post-loader"> <a href="#" class="button button-grey"><?php _e('Load More', 'colabsthemes'); ?> </a> </div> <?php colabs_content_nav($latest_post); } get_footer();
} else { $args = array('post_type' => 'property', 'paged' => $paged); } $latestproperties = new WP_Query($args); if ($latestproperties->have_posts()) { ?> <div class="post-list post-grid loading"> <?php while ($latestproperties->have_posts()) { $latestproperties->the_post(); ?> <?php get_template_part('content', 'property'); ?> <?php } wp_reset_postdata(); ?> </div><!-- .post-list --> <div class="post-loader"> <a href="#" class="button button-grey"><?php _e('Load More', 'colabsthemes'); ?> </a> </div> <?php colabs_content_nav($latestproperties); } get_footer();
<?php get_header(); if (have_posts()) { ?> <div class="post-list post-grid post-blog loading"> <?php while (have_posts()) { the_post(); ?> <?php get_template_part('content', 'post'); ?> <?php } wp_reset_postdata(); ?> </div><!-- .post-list --> <div class="post-loader"> <a href="#" class="button button-grey"><?php _e('Load More', 'colabsthemes'); ?> </a> </div> <?php colabs_content_nav(); } get_footer();
<?php $args = array('post_type' => 'property', 'post__in' => get_option('sticky_posts'), 'paged' => $paged, 'post_status' => 'published', 'ignore_sticky_posts' => true); $featuredproperties = new WP_Query($args); if ($featuredproperties->have_posts()) { ?> <div class="post-list post-grid loading"> <?php while ($featuredproperties->have_posts()) { $featuredproperties->the_post(); ?> <?php get_template_part('content', 'property'); ?> <?php } wp_reset_postdata(); ?> </div><!-- .post-list --> <div class="post-loader"> <a href="#" class="button button-grey"><?php _e('Load More', 'colabsthemes'); ?> </a> </div> <?php colabs_content_nav($featuredproperties); } get_footer();