Viewing 2 replies - 1 through 2 (of 2 total)
  • When someone clicks the category, are they taken to a page using a template like category.php or archives.php?

    Something like this should work for you:

    <?php if (have_posts()) : ?>
    
    		 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
    <?php /* If this is a category archive */ if (is_category()) { ?>
    		<p>Viewing: <?php echo single_cat_title(); ?></p>
    
    		<?php } ?>

    Thread Starter moessap

    (@moessap)

    Sorry I haven’t checked this for a couple days.

    Yes it’s category.php.

    I’ll try that out… thanks for the help :).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying Only ONE Category’ is closed to new replies.