WordPress Coolrecession Date Annoyance Fix #wordpress

I currently using the Coolrecession theme for my WordPress implementation.  One annoying thing is the default date format for blog posts.  My attempts to change this in WordPress > Settings  did not work.  So I began to look through the source code.  I found the answer on line 26 of the file:

/var/www/wordpress/wp-content/themes/coolrecession/index.php

Below is an example of how it looked before along with the corresponding code snippet:

cirrus_nineblogdatebefore_1243343353590

<?php the_time('m jS, Y') ?>

Below is how it looked afterwards.

cirrus-nineblogdateafter_1243343440370

<?php the_time('F jS, Y') ?>

Note the change from lower case ‘m’ to upper case ‘F’.

Then I decided I wanted to include the time of the post as well.  So I updated the code to read:

<?php the_time('m jS, Y | g:i a') ?>

Now it looks like this:

cirrus-nineblogafterdatetime_1243345220552

Pretty easy once you know where to look.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Google
  • Slashdot
  • StumbleUpon
  • TwitThis
  • LinkedIn

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.

 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up