File: /home/dh_7uh9vd/lifeofcanada.com/wp-content/themes/mts_socialnow/archive.php
<?php
/**
* The template for displaying archive pages.
*
* Used for displaying archive-type pages. These views can be further customized by
* creating a separate template for each one.
*
* - author.php (Author archive)
* - category.php (Category archive)
* - date.php (Date archive)
* - tag.php (Tag archive)
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*/
$mts_options = get_option(MTS_THEME_NAME);
get_header(); ?>
<div id="page">
<div class="<?php mts_article_class(); ?>">
<div id="content_box">
<h1 class="postsby">
<span><?php the_archive_title(); ?></span>
</h1>
<div class ="grid-1">
<?php $j = 0; if (have_posts()) : while (have_posts()) : the_post(); ?>
<article class="latestPost excerpt">
<?php mts_archive_post(); ?>
</article><!--.post excerpt-->
<?php $j++; endwhile; endif; ?>
<?php if ( $j !== 0 ) { // No pagination if there is no posts ?>
<?php mts_pagination(); ?>
<?php } ?>
</div>
</div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>