Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter AphelionZ

    (@aphelionz)

    I just tried this little bit of code

    <?php if(the_date('','','',false) != "") { ?>
              <div class="date"><?php the_date("M j",'','',true); ?></div>
            <? } ?>

    and i got boxes every time, but I didn’t get the date.

    It’s like if the_date gets called once, it doesn’t get called again…

    Thread Starter AphelionZ

    (@aphelionz)

    got it.

    <?php the_date("M j",'<div class="date">','</div>',true); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘the_date question’ is closed to new replies.