• Resolved mdi

    (@mdi)


    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?

Viewing 1 replies (of 1 total)
  • Thread Starter mdi

    (@mdi)

    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)

Viewing 1 replies (of 1 total)
  • The topic ‘Month Abbreviation in WP 2.1 (wp_get_archives)’ is closed to new replies.