biofriction-wp-theme/biofriction-theme/archive.php

52 lines
1.5 KiB
PHP
Raw Normal View History

2021-02-18 15:27:46 +01:00
<?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; ?>
<?php if (is_category('peephole')) : ?>
<div class="bfr_category_tags">
<?php // wp_tag_cloud( 'unit=rem&smallest=1&largest=1&number=0&orderby=name' ); ?>
</div>
<?php endif; ?>
2021-02-18 15:27:46 +01:00
<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();