Currently, I am using the Travelogue theme and it displays the date next to each post on every page. I only want it to display the date next to posts on the home page. I have tried using the is_home() condition without success. Any help would be greatly appreciated. I’m sure this is very simple and I am just missing something stupid. Thanks.
<?php $postraw = the_date('D, j, M, y', '', '', FALSE);
$postdate = explode(', ', $postraw); ?>
<div class="dayname"><?php echo $postdate; ?></div>
<div class="daynum"><?php echo $postdate; ?></div>
<div class="month"><?php echo $postdate; ?> '<?php echo $postdate; ?></div>
- The topic ‘Only display date on homepage’ is closed to new replies.