カスタム投稿タイプ
add_action('init','add_book_post_type');
function add_book_post_type() {
$param = array(
'labels' => array(
'name' => '書籍',
'singular_name' => '書籍',
'add_new' => '新規追加',
'add_new_item' => '記事を新規追加',
'edit_item' => '記事を編集する',
'new_item' => '新規追加',
'all_items' => '記事一覧',
'view_item' => '記事を表示',
'search_items' => '検索する',
'not_found' => '記事が見つかりませんでした。',
'not_found_in_trash' => 'ゴミ箱の中に記事が見つかりませんでした。'
),
'public' => true,
'has_archive' => true,
'menu_position' => 5,
'supports' => array('title','editor'),
// 'rewrite' => true,
// 'taxonomies' => array('gallery_area','gallery_style','gallery_genre'),
'rewrite' => array('with_front' => false)
);
register_post_type('book',$param);
}