Exemple #1
0
    ?>
			<?php 
    while (have_posts()) {
        the_post();
        ?>

				<?php 
        $template = '';
        $type = get_post_type();
        if (gather_load_masonry()) {
            $template = 'masonry';
            if ('download' == $type) {
                $template = 'masonry-download';
            }
        }
        get_template_part('content', gather_template_part());
        ?>

			<?php 
    }
    ?>
			</div>

			<?php 
    gather_paging_nav();
    ?>

		<?php 
} else {
    ?>
Exemple #2
0
/**
 * Used by JetPack to render the correct template part
 */
function gather_infinite_scroll_render()
{
    while (have_posts()) {
        the_post();
        get_template_part('content', gather_template_part());
    }
}