5ThirtyOne



Chrondata customization quickie

Mar 18th 2006
2 Comments
respond
trackback

Originally found on Openswitch, Wordpress users can easily present their posting date in a more minimalistic style with a simple change to the PHP time function.

Locate and edit the appropriate PHP string in your index.php, home.php, or single.php template. Rather than displaying the date as March 16, 2006 you can display the date as 16Mar06.

<?php the_time('dMy') ?>

Insert the above string wherever you wish. Feel free to wrap the function within <span> tags to assign a class and style with CSS. WordPress is PHP so the PHP handbook pertaining to formating date and time will be a worthwhile bookmark.



2 Comments

  1. Oooh dandy!

  2. tom

    thats it, that i was looking for, thx a lot. wish a nice sunday

Incoming Links



Leave a Reply

Comments may be held for moderation. If your comment does not appear immediately, do not repost. I reserve the right to remove any inappropriate or off-topic comments. Please use the forum if your comment is not appropriate for the current article.

Flickr Visit »

  • Roof top
  • Burnside
  • 6th & Alder St.
  • Mossy stairs
  • Sidewalk
  • Stones
  • Shadows
  • Rock floor
  • Doughnut racks
  • Voodoo Doughnuts
  • Syl Chinese Garden
  • Syl showing the goods
  • Nuts & Oreo
  • Reflected
  • Voodoo menu
  • Street vendors
  • Voodoo Doughnuts
  • Passing
  • Japenese Garden
  • Zig zag bridge