• I am starting a Blog. I wrote a sample one, and it shows up under all categories even though only one is selected. I believe it to be an error with the category.php file but I am not sure what to change.
    https://www.caffeineandgrace.com
    <?php if ( have_posts() ) : ?>
    <header class=”archive-header”>
    <h1 class=”archive-title”><?php echo ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’ ; ?></h1>

    <?php if ( category_description() ) : // Show an optional category description ?>
    <div class=”archive-meta”><?php echo category_description(); ?></div>
    <?php endif; ?>
    </header><!– .archive-header –>

    <div class=”clear”></div>

    <?php
    /* Start the Loop */

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Need to rewrite the category.php file’ is closed to new replies.