示例#1
0
<?php

if (have_posts()) {
    ?>
	<div class="blog-list">
	<?php 
    while (have_posts()) {
        the_post();
        get_template_part('templates/blogs/blog', 'loop-search');
    }
    ?>
	</div>
	<?php 
    kt_paging_nav();
} else {
    get_template_part('content', 'none');
}
示例#2
0
            }
            echo '</div>';
        }
        if ($i == $wp_query->post_count) {
            echo '</div><!-- .main-content -->';
            // Previous/next page navigation.
            kt_paging_nav();
            echo "</div>";
            if ($sidebar['sidebar']) {
                echo '<div class="col-md-4 col-sm-12 col-xs-12 sidebar main-sidebar">';
                dynamic_sidebar($sidebar['sidebar_area']);
                echo '</div>';
            }
            echo '</div><!-- .main -->';
        }
        $i++;
        // End the loop.
    }
    if ($wp_query->post_count == 1) {
        // Previous/next page navigation.
        kt_paging_nav($pagination);
    }
    ?>
        </div><!-- .container -->
    </div><!-- .blog-posts -->
    <?php 
    // If no content, include the "No posts found" template.
} else {
    get_template_part('templates/content', 'none');
}
get_footer();