WordPress.org

Ready to get started?Download WordPress

Forums

Formatting post dates (4 posts)

  1. Buca
    Member
    Posted 5 years ago #

    Is there away for my to format my post's dates so that they might say something along line of "posted 2 days ago" as appose to "posted Aug 22?"

    Thanks

  2. esmi
    Forum Moderator
    Posted 5 years ago #

    Not unless you're petty handy with PHP's date functions.

  3. WebTechGlobal
    Member
    Posted 4 years ago #

    Wouldnt be that hard at all. You would need to use the action hook that can edit your post once submitted and change the date. Probably put the function in your themes header. maybe.

    Or even make a basic plugin, take me an hour.

    Then date()+(2 * 24 * 60 * 60) will increase the current date and time by 2 days and use it as the publish date.

    Sorry I don't have time right now to code it, I do have a date formatting issue myself right now however.

  4. alchymyth
    Forum Moderator
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.