https://kasumiblog.org/wordpress-postmax-num/
【WordPress】1ページに表示する最大投稿数の設定値を取得する方法