WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Archive Month abbreviated to only fourth letter of month (13 posts)

  1. bulk
    Member
    Posted 8 years ago #

    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

  2. tsguitar
    Member
    Posted 8 years ago #

    A link to the site might help. Also, post the code you're using to display the dates.

  3. bulk
    Member
    Posted 8 years ago #

    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....

  4. bulk
    Member
    Posted 8 years ago #

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

    Original code:

    [Moderated - code removed]

  5. Mark (podz)
    Support Maven
    Posted 8 years ago #

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

  6. bulk
    Member
    Posted 8 years ago #

    Why was the code removed?

  7. Mark (podz)
    Support Maven
    Posted 8 years ago #

    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?

  8. bulk
    Member
    Posted 8 years ago #

    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...

  9. bulk
    Member
    Posted 8 years ago #

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

  10. bulk
    Member
    Posted 8 years ago #

    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.

  11. bulk
    Member
    Posted 8 years ago #

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

  12. Kafkaesqui

    Posted 8 years ago #

    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');

  13. bulk
    Member
    Posted 8 years ago #

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

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic