回答編集履歴
1
訂正
answer
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
getarchives_where | Hook | WordPress Developer Resources
|
4
4
|
[https://developer.wordpress.org/reference/hooks/getarchives_where/](https://developer.wordpress.org/reference/hooks/getarchives_where/)
|
5
5
|
|
6
|
-
もっといい方法があるかもしれませんが、ここに2017
|
6
|
+
もっといい方法があるかもしれませんが、ここに2017年1~12月までの記事を取得するWHERE句を書けば実現できるんじゃないかなーと思います。
|
7
7
|
|
8
8
|
|
9
9
|
2018年のものに関しては、`wp_get_archives()`のパラメータ`limit`に今年の月数を与えれば良いでしょう。
|