Forums

Writing 'New' next to today's posts (3 posts)

  1. magicwings
    Member
    Posted 7 months ago #

    So I thought this would be easy, but:

    <?php if (the_time('F jS, Y') < date('F jS, Y')) {
    						echo ('NEW - ');
    				} else { echo(''); }?>

    outputs the date along with 'NEW - ' next to the link title, so it looks like:

    October 9th, 2011NEW - Post Title

    ...which is obviously not what I'm trying to do!

    Does anybody know a workaround?

  2. magicwings
    Member
    Posted 7 months ago #

    By the way, it's only outputting that next to TODAY'S posts - so something's working right!

  3. Big Bagel
    Member
    Posted 7 months ago #

Reply

You must log in to post.

About this Topic