Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
WordPress には、現在サイトにロードされているものをテストするis_front_page()or のような条件付き関数があります。is_home()
is_front_page()
is_home()
エラーページが表示されるかどうかをテストする同様の機能はありますか?
is_404() 関数? これが必要だと思います。
http://codex.wordpress.org/Function_Reference/is_404