• Resolved corona79

    (@corona79)


    I don’t want the time to display on posts and was able to “blank it out” in Settings – General – Time Format. Now the date displays with a trailing comma, e.g., “October 5, 2009,“. Is there a way to get rid of that extraneous comman?

Viewing 5 replies - 1 through 5 (of 5 total)
  • What does your custom setting say on that Settings > General > Time Format page? Is there an extra comma there to just remove, ie: “F j, Y,”?

    Thread Starter corona79

    (@corona79)

    The date format is October 5, 2009
    The time format is Custom: <blank> – which I why I don’t understand where the comma comes from.

    Sorry, I meant Date Format. Is there anything in the custom box for that?

    Thread Starter corona79

    (@corona79)

    It shouldn’t matter, because the Custom option is not selected for Date Format, but it’s basically what produces October 5, 2009, that is, F j, Y

    Ahh, ok. Just checking.

    You’ll need to have a look through your theme files then. Try your index.php, page.php and single.php files. Sounds like it’s been coded in to that.

    Have a look for something along the lines of:

    <?php the_time('F j, Y'); ?>, <?php the_time('g:i a'); ?>

    …and remove the unwanted comma.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to display the date without a trailing comma?’ is closed to new replies.