【WordPress】Deprecated: Methods with the same name… エラーの原因と対処法(PHP7/8対応)custom-post-templa... プラグインの使い方