WordPressプラグインのAll in One SEO Packのアーカイブページのタイトルの日付表記がちょっと気に入らなかったので調整した。 どう対応すべきか迷ったあげく aioseop.class.php を直接修正。 年月日を直書きしているのがなんだか、自分用なのでそのままにしている。 *** 769,774 **** --- 773,784 ---- } } else if (is_archive()) { $date = $this->internationalize(wp_title('', false)); + // <add> + if (is_day()) { $date = get_the_time(get_option('date_format')); } + else if (is_month()) { $date = get_the_time('Y年n月');
![All in One SEO Pack のアーカイブタイトルの日本語調整](https://cdn-ak-scissors.b.st-hatena.com/image/square/99988b84cea5b1dd728c2fea339af4826035d33d/height=288;version=1;width=512/https%3A%2F%2Fhkzo.org%2Fwp-content%2Fuploads%2F2022%2F05%2Fhand-g5419512da_1280.jpg)