• Does anyone know how to turn off or disable the Date stamp for Posts? I see where you can edit it but I don’t want the date to show up on my Posts.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter scottkr

    (@scottkr)

    Aren’t we looking for date and not time? Or does Word Press consider date and time the same thing?

    Thread Starter scottkr

    (@scottkr)

    This is what it has now

    <?php the_time(‘l, F jS, Y’) ?>

    I’m going to change it to this

    <!–?php the_time(‘l, F jS, Y’) ?–>

    Time is a more detailed version of date (it includes not just the date that the post was published, but also the time).

    The format (‘l, F jS, Y’) indicates that the_time() would display:

    • l – A full textual representation of the day of the week
    • F – A full textual representation of a month, such as January or March
    • j – Day of the month without leading zeros
    • S – English ordinal suffix for the day of the month, 2 characters
    • Y – A full numeric representation of a year, 4 digits

    Therefore, in this case, the theme’s author was using the_time() just to show the date (most likely because the_date() only shows each date a single time on the page; whereas, I believe, the_time() will show the date and/or time for each post on the page, even if that date is the same as the previous post).

    If I were you, I would replace that code with:

    <?php /* the_time('l, F jS, Y') */ ?>

    The way you replaced it, the date will still show up in the source of the page (maybe that’s the way you want it?); but if you actually comment out the PHP code as shown above, that date won’t show up at all.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Date stamp on Posts’ is closed to new replies.