This repository has been archived on 2021-10-26. You can view files and clone it, but cannot push or open issues or pull requests.
biofriction-web/biofriction-theme/archive.php

45 lines
1.3 KiB
PHP

<?php
/**
* The template for displaying archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each one. For example, tag.php (Tag archives),
* category.php (Category archives), author.php (Author archives), etc.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Biofriction
* @since Biofriction 1.0.0
*/
get_header(); ?>
<div class="main-container">
<div class="main-grid">
<main class="main-content">
<h3 class="bfr_category_title"><?php //single_cat_title(); ?></h3>
<?php if ( category_description() ) : ?>
<div class="bfr_category_description">
<?php echo category_description(); ?>
</div>
<?php endif; ?>
<div class="bfr_category_archive">
<?php if ( have_posts() ) : ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'template-parts/content', 'archive' ); ?>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
</div>
<?php get_template_part( 'template-parts/navigation', 'prevnext' ); ?>
<?php endif; // End have_posts() check. ?>
</main>
</div>
</div>
<?php get_footer();