48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* The template for displaying category pages
|
|
*/
|
|
|
|
get_header(); ?>
|
|
|
|
<div class="category-header">
|
|
<div class="site-container">
|
|
<h1 class="category-title">Archive: <?php single_cat_title(); ?></h1>
|
|
<?php if ( category_description() ) : ?>
|
|
<div class="category-description"><?php echo category_description(); ?></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="site-container">
|
|
<main id="primary" class="site-main">
|
|
<div class="insights-grid">
|
|
<?php
|
|
if ( have_posts() ) :
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class( 'insight-card' ); ?>>
|
|
<header class="entry-header">
|
|
<?php the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' ); ?>
|
|
</header>
|
|
|
|
<div class="entry-summary">
|
|
<?php the_excerpt(); ?>
|
|
</div>
|
|
</article>
|
|
<?php
|
|
endwhile;
|
|
|
|
the_posts_navigation();
|
|
else :
|
|
echo '<p>' . esc_html__( 'No posts found in this category.', 'wisdom1' ) . '</p>';
|
|
endif;
|
|
?>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<?php
|
|
get_footer();
|