wjnesbitt
Member
Posted 4 months ago #
Currently, my blog is divided into two sections - blogs and articles. The blogs are material that I write and the articles are material from other authors.
I would like to set it up so that the date only shows up in the blogs and not the articles. How can I achieve this?
Thanks.
The Loop article discusses using a conditional tag to exclude categories, so you could use the same technique:
<?php if (in_category('blogs')) {
the_time('F jS, Y');
?>
Related:
the_time()
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
remove the date tags from archive.php and index.php
http://codex.wordpress.org/Template:Date_Tags