WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Formatting question on days of week in calendar (4 posts)

  1. Daisyhead
    Member
    Posted 7 years ago #

    I am calling in my calendar using <?php get_calendar(2); ?>. According to the documentation on the get_calendar tag, the days on my calendar should be 2 letter abbreviations but they're not. What I'm getting is the name of each day spelled out in it's entirety. I'm running WP 2.0.5.

    Does anyone know how I can get the 2 letter abbreviations for the days of the week? Thanks!

  2. moshu
    Member
    Posted 7 years ago #

    I am afraid that's an error in the docs. It happens...
    As I see it you have only 2 choices: 1 letter or 3 letters.
    (or, if you like to mess around with core files > open the wp-includes/locale.php and change the 3 letter abbreviations to 2)

  3. Daisyhead
    Member
    Posted 7 years ago #

    So I can change the output by modifying the wp-includes/locale.php file?

  4. Daisyhead
    Member
    Posted 7 years ago #

    Got it Moshu! Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic