How to display date in a very unique way (3 posts)

  1. frotzed
    Posted 7 years ago #

    I'm currently using Textpattern (openswitch.org) and you can see how I've got my date splayed down the side of the post. The code I use to do this in Textpattern (via some help on the Textpattern forums):

    <?php echo nl2br(chunk_split(posted(array('format' => '%m%d%y')), 1, "\n")); ?>

    In Textpattern the date posted data is called with the "posted" and is formatted with the "format". How would I accomplish this same thing in WordPress? If I could figure this out I'd switch my blog from Textpattern to WordPress but when I try to simply swap out the "posted" for something like "date_posted" it doesn't work so I assume I'm doing something very wrong.

    Any help would be greatly appreciated.

  2. moshu
    Posted 7 years ago #

    One of these should work:
    the rest is just CSS...

  3. frotzed
    Posted 7 years ago #

    Thanks moshu!

Topic Closed

This topic has been closed to new replies.

About this Topic