Example #1
0
            <?php 
if (have_posts()) {
    ?>
            
                <?php 
    /* Start the Loop */
    while (have_posts()) {
        the_post();
        /* Include the post format-specific template for the content. If you want to
         * this in a child theme then include a file called called content-___.php
         * (where ___ is the post format) and that will be used instead.
         */
        get_template_part('single-templates/content/content', get_post_format());
    }
    tb_paging_nav();
    ?>

            <?php 
} else {
    ?>
                <?php 
    get_template_part('single-templates/content', 'none');
    ?>
            <?php 
}
?>

            </div><!-- #content -->
        </section><!-- #primary -->
        <div class="col-xs-12 col-sm-3 col-md-3 col-lg-3">
</span><span class="tb_grid_comment"><?php 
    comments_number(' | Comment: 0', ' | Comment: 1', ' | Comment: %');
    ?>
</span>
						</div>
					</div>
					<div class="tb-grid-content">
						<?php 
    the_excerpt();
    ?>
					</div>
					<div class="tb-grid-readmore">
						<a href="<?php 
    the_permalink();
    ?>
"><?php 
    _e('Read more ', 'leonard');
    ?>
<i class="fa fa-long-arrow-right"></i></a>
					</div>						
                </div>
            </div>
            <?php 
}
?>
    </div>
    <?php 
tb_paging_nav($posts);
wp_reset_postdata();
?>
</div>