Archived

This topic is now archived and is closed to further replies.

  • 0

Date format in Post Subheader

Question

Posted · Report post

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.

Share this post


Link to post
Share on other sites

2 answers to this question

Posted · Report post

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('m.d.y'); ?>
with this code:
<?php the_time(get_option('date_format')); ?>

Share this post


Link to post
Share on other sites

Posted · Report post

Just what I needed, and thank you!

Share this post


Link to post
Share on other sites