WordPress
カスタム投稿タイプの増やし方
functionに
function create_posttype(){ $labels = ["name"=>"発達障害ブログ", "singular_name"=>"発達障害", "menu_name" =>"◆発達障害ブログ"]; $args = ["labels"=>$labels, "public" => true, "has_archive" => true, "menu_position" => 5, "rewrite" => array("slug" => "develop/blog"), "supports" => array("title", "editor", "thumbnail")]; register_post_type("develop", $args); register_taxonomy("dd_cate", "develop", array( "hierarchical" => true, "label" => "カテゴリ", "show_ui" => true, ) ); register_taxonomy("dd_tag", "develop", array( "hierarchical" => false, "label" => "タグ", "show_ui" => true, ) ); }