Initial commit: Wisdom1 barebones theme with landing page, categories, and single post templates

This commit is contained in:
Adolfo Reyna
2026-03-12 23:06:01 -04:00
commit c4a6f2f4ab
11 changed files with 998 additions and 0 deletions

47
category.php Normal file
View File

@@ -0,0 +1,47 @@
<?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();