以下コードをサーバー上にUPするとエラーが出てしまいます。
$exampleSupports = [~];が違えているようですが
何が間違えているか明確にはわからず改善できません、、
function create_post_type() { $exampleSupports = [ 'title', 'editor', 'thumbnail', 'revisions' ]; // add post type register_post_type( 'example', array( 'label' => '店舗詳細', 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'parmarink'), 'menu_position' => 5, 'supports' => $exampleSupports ) ); // add taxonomy register_taxonomy( 'example_taxonomy', 'example', array( 'label' => 'カテゴリー', 'labels' => array( 'all_items' => 'タクソノミー一覧', 'add_new_item' => '新規タクソノミーを追加' ), 'hierarchical' => true ) ); }
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー