Viewing 4 replies - 1 through 4 (of 4 total)
  • With the help of the Template Hierarchy article, determine what Template is displaying your posts (with the date problem), then paste the content of that template in a pastebin and report the link back here.

    Thread Starter nick5nichols

    (@nick5nichols)

    First, thanks for the Template Hierarchy article! That was really interesting! And, I’ve never heard of a pastebin before, but what a great idea to save forum server space!

    The date stuff seems to be in the middle.

    https://wordpress.pastebin.ca/1647071

    Thanks!!

    Actually, that’s not the template that is displaying your posts…the one to look for is wp-content/themes/the-last-fall/index.php

    In that file, you have this line of code:

    <small class="time">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Posted on <?php the_time('D ,d/m/Y') ?></small>

    The critical thing is <?php the_time('D ,d/m/Y') ?>

    You need to change that to something like:
    <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
    which would show Wednesday, May 20th, 2009 at 10:19 am for time right about now.

    But see these two articles and decide what format you want:

    the_time()
    Formatting_Date_and_Time

    Thread Starter nick5nichols

    (@nick5nichols)

    Wow!!! That worked perfectly! And your response was very educational to me as well!! Thank you!!!

    I used what you had because that’s what I would have chosen as a post display date.

    Check out your correction: https://www.faithstoriesonline.com

    Thanks again! Nick

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I move a comma to the left?’ is closed to new replies.