5ThirtyOne

Derek Punsalan

Media Temple

Chrondata customization quickie

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.

Backblaze unlimited secure online backups Find out what Backblaze can do for your online backups

2 Comments • RSS

  1. tom says:

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

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. If you plan on sharing helpful code, please pass it through Postable first. Want other to know who you are? Register a Gravatar.

Syndicate

Subscribe via RSS or Email

Advertisements

9rules network

5THIRTYONE

Public projects

Select project

Something new

Fresh content

Show Latest

Muro – HTML5 drawing tool Check out deviantART's HTML5 drawing tool. Super slick and a joy to work with. Makes you wonder why basic desktop drawing tools *cough* Microsoft Paint *cough* still exist. Link