word press初心者です
カスタム投稿ページのスラッグの変更の仕方がわかりません。
設定→パーマリンクの設定で/%category%/%postname%/を書きましたがスラッグがファイル名のままで変更が出来ません。
カスタム投稿ページ作成のためにfunction.phpには以下構文書いています。
よろしくお願いいたします。
function create_post_type() { $exampleSupports = [ 'title', 'editor', 'thumbnail', 'revisions' ]; // add post type register_post_type( 'example', array( 'label' => '店舗詳細', 'public' => true, 'has_archive' => true, 'menu_position' => 5, 'supports' => $exampleSupports ) ); // add taxonomy register_taxonomy( 'example_taxonomy', 'example', array( 'label' => 'カテゴリー', 'labels' => array( 'all_items' => 'タクソノミー一覧', 'add_new_item' => '新規タクソノミーを追加' ), 'hierarchical' => true ) ); }
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/18 08:08
2017/07/18 11:46
2017/07/19 00:56