Support » Fixing WordPress » Fix a comma in meta type

  • I just noticed that the comma behind the year is missing in this meta type on a page:

    Posted on: May 22nd, 2012 by John Doe

    It should be: May 22, 2012, by John Doe

    I haven’t check whether the typo is also there on posts. But, I was wondering what file to look in to find it and fix it. I tried meta.php in the includes folder but didn’t see it there. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • what theme are you referring to?

    Thread Starter jtm12

    (@jtm12)

    Maybe I should mention that I’m barely functional at this. I built my own theme using the blank starter kit that a certain wonderful WordPress designer made available to everyone through Lynda.com. Should I be looking in those pages?

    theme using the blank starter kit

    if it is free theme, please post a download link.

    genral, these postmetadata such as the post date might be in index.php, single.php (and possibly archive.php etc.) or in any functions called by these templates.

    if the date structure was provided by a commercial theme or instructions video or so, try to contact the provider of those services.

    Thread Starter jtm12

    (@jtm12)

    The blank starter theme is under the “Exercise Files” tab.

    Link

    I will look in those files to see if I can find it. Thank you for your assistance. I would have been looking all day in the wrong place.

    if you look into index.php, see this line:

    <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?>

    this points to:

    /inc/meta.php, where you find:

    <em>Posted on:</em> <?php the_time('F jS, Y') ?>
    	<em>by</em> <?php the_author() ?>

    which is where your ‘problem’ is.

    single.php, archive.php, search.php, and page.php are using the same code, therefore changing it in /inc/meta.php should solve it sitewide.

    http://codex.wordpress.org/Formatting_Date_and_Time

    Thread Starter jtm12

    (@jtm12)

    Done.

    Thanks so much.

    I don’t see a button to mark your answer as the correct one. Does this forum not award points?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fix a comma in meta type’ is closed to new replies.