Support » Everything else WordPress » Archive Month abbreviated to only fourth letter of month

  • Resolved bulk

    (@bulk)


    The archive date is only displaying the fourth letter, plus the four digit year.
    I can’t seem to figure out how that can be. February and March are displayed as:
    c 2006
    r 2006

Viewing 12 replies - 1 through 12 (of 12 total)
  • A link to the site might help. Also, post the code you’re using to display the dates.

    Hmm, guess you’re right. cfsw.us
    I just noticed that if I follow an article link it displays the month correctly.

    I’ve not touched the code that displays it. Seems it would have to be the style sheet though it makes little sense. My guess was that someone would just recognize it and say Aha….

    OK, I seem to have narrowed it down to being related to moving a </div>:

    Original code:

    [Moderated – code removed]

    The file wp-includes/locale.php has all the day / month information in it.

    Why was the code removed?

    Code is removed because it’s hard to read – the forum software strips tags and renders other so what is needed to be seen cannot. A recommended site for code – which you can then link back here is http://pastebin.com

    Did locale.php work?

    Sorry but I don’t know what you are talking about.
    I don’t see how wp-includes/locale.php has anything to do with my problem. (Though I get you are trying to help : )
    My problem is with a piece of code from News Time.
    I’ve modified the header by rearranging the navigation lines. I’ll try posting them to that postbin link…

    Here’s the code: http://pastebin.com/628434

    I should mention that the problem is not showing up in that listed code, but I’ve narrowed it down to depending on which one I use the date is, or is not messed up in each article and in the sidebar.

    Ah, I found the problem. Having this code alters the code as it uses the same variables.
    http://pastebin.com/628464

    If all the getdate() stuff is causing an issue (probably a conflict in $month, which WP uses), try replacing it with just this:

    echo date('F j, Y');

    Actually it appears to only be the month variable, changing it to mth solved the problem.

    Thanks for your help!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Archive Month abbreviated to only fourth letter of month’ is closed to new replies.