2019-10-16 カスタム投稿タイプでつくった 特定の投稿タイプだけに何かしたいとき https://irec.jp/wordpress/custom-post-type/custom-post-conditional-branching/