Showing posted date for single category only
-
My theme uses the following code in single.php to display the post date before an entry:
<div class="postmetadata">Posted in <?php the_category(', ') ?> | <?php the_time('F jS, Y') ?></div>
I have used display: none; under .postmetadata to disable this, which works well.
However, I now have two categories – News and Themes (the slugs are lower case but the names have capital initials, if it matters). I want Themes to continue to have no post date, but I want the date to show once again for News. How can I achieve this?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Showing posted date for single category only’ is closed to new replies.