Formatting post dates (4 posts)

  1. Buca
    Posted 6 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?"


  2. esmi
    Forum Moderator
    Posted 6 years ago #

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

  3. WebTechGlobal
    Posted 6 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. Michael
    Forum Moderator
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.