WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Month Abbreviation in WP 2.1 (wp_get_archives) (2 posts)

  1. mdi
    Member
    Posted 7 years ago #

    German native speaker... so be patient ;o)

    In WordPress 2.1 those "hacks" in template-functions-general.php found in this forum to use the month-abbreviation in monthly archives (show link as "01.2007" instead of "January 2007") don't work anymore. Actually there's no such file, the new file is "general-template.php" and it shares some relevant (?) code with the updated file locale.php.

    Does anyone know the method for WordPress 2.1?

  2. mdi
    Member
    Posted 7 years ago #

    Ok... found a solution that works for me, but doesn't use the abbreviations in locale.php... So it really only works for (as above) links like "01.2007".

    In general-template.php I simply changed line 343

    $text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year);

    to:

    $text = sprintf(__('%02s.%d'), $arcresult->month, $arcresult->year);

    ...For me this topic is resolved. Further advice always welcome. ;o)

Topic Closed

This topic has been closed to new replies.

About this Topic