Custom Post Type UIでカスタム投稿タイプを追加
-
function.phpに
//**************************************************
/* カスタム投稿タイプの追加 */
add_action( ‘init’, ‘create_post_type’ );
function create_post_type() {
register_post_type( ‘products’, /* post-type */
array(
’labels’ => array(
’name’ => __( ‘商品’ ),
’singular_name’ => __( ‘商品’ )
),
’public’ => true,
’menu_position’ =>5,
)
);
}を、書き足すのと同様のことを、
Custom Post Type UI version: 0.8.4 を使ってやるみはどうすればいいのでしょう?
検索してもどうもみあたらず、恐縮ですがどなたかお教えいただければ幸いです。
1件の返信を表示中 - 1 - 1件目 (全1件中)
1件の返信を表示中 - 1 - 1件目 (全1件中)
- トピック「Custom Post Type UIでカスタム投稿タイプを追加」には新たに返信することはできません。