Support » Themes and Templates » Only display date on homepage

  • Resolved jbj101

    (@jbj101)


    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.

    [moderated: snip]
    <div class="post">
    <div class="post_cal">
    <?php $postraw = the_date('D, j, M, y', '', '', FALSE);
    $postdate = explode(', ', $postraw); ?>
    <div class="dayname"><?php echo $postdate[0]; ?></div>
    <div class="daynum"><?php echo $postdate[1]; ?></div>
    <div class="month"><?php echo $postdate[2]; ?> '<?php echo $postdate[3]; ?></div>

    <div class="year"></div>
    </div>

    [moderated: snip]

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Only display date on homepage’ is closed to new replies.