Jump to content


Date format in Post Subheader

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 ColinMcLean



  • Members
  • Pip
  • 6 posts

Posted 05 November 2009 - 11:33 PM

I've enjoyed working out every other little 'wrinkle' to date as I've set up my site but I'm currently at a dead end on one, no doubt, very simple matter. I've amended the preferences for UK style dates (ie. 5.11.09 rather than 11.05.09) wherever I could find that option but the subheader on each post still reads '11.05' for example, rather than '5.11'. That's what I'm looking to change. It's bound to be a straightforward line that needs amending .. but I need a steer please. Anybody? And thanks.

#2 arpowers



  • Administrators
  • 3272 posts

Posted 06 November 2009 - 02:49 AM

good catch. Another IBP user, Ronald, has brought that up a couple of times recently.

Most WP themes use a simple "the_time('F jS, Y')" for their post time formatting (including the default theme)

I did a little digging and found out how to do this using WP's default time formatting setting.

We've added this featured but haven't yet updated with it yet.
so until then, here is how you can fix:

in the file '_posts.php' you need to replace this code:
 <?php the_time(&#39;m.d.y&#39;); ?>

with this code:
 <?php the_time(get_option(&#39;date_format&#39;)); ?>

#3 ColinMcLean



  • Members
  • Pip
  • 6 posts

Posted 06 November 2009 - 07:30 AM

Just what I needed, and thank you!