Support » Fixing WordPress » Special Class for Today’s Post

  • Is there a php code that is used when you would like to use a special class for posts that were written today?

    something like:

    <?php $today = date('F jS, Y'); ?>
    <div class="entry<?php if ($today = the_time('F jS, Y')) { ?>today<? }else{ ?><?php }?>">

    Doing this simply echoes the date in the template. It’s driving me crazy.

    Any help would be really appreciated. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Special Class for Today’s Post’ is closed to new replies.