<?php /** * The template for displaying archive pages * * @author Javis <*****@*****.**> * @license MIT * @since 1.0 * @version 1.0 */ get_header(); ?> <div class="archive-page-header layout-center"> <?php the_archive_title('<h1 class="archive-title">', '</h1>'); the_archive_description('<div class="taxonomy-description">', '</div>'); ?> </div> <?php if (have_posts()) { while (have_posts()) { the_post(); get_template_part('inc/post-format/category', get_post_format()); } } lo_pagenavi(); get_footer();
<?php /** * The main template file * * @author Javis <*****@*****.**> * @license MIT * @since 1.0 * @version 1.0 */ get_header(); if (have_posts()) { while (have_posts()) { the_post(); get_template_part('inc/post-format/content', get_post_format()); } } ?> <?php lo_pagenavi(3); get_footer();