[WC Vendors] Can vendors post blog?
-
Hi,
I’m cerating market site with WC Vendors plugin.
Even thought I set custom post from functions.php, it’s not displayed on the vendors admin menu.
How can I display custom post on that?Below is my code.
function add_custom_post() {
//WORKS
register_post_type(
‘brand’,
array(
‘label’ => ‘Brabd’,
‘public’ => true,
‘has_archive’ => true,
‘menu_position’ => 5,
‘supports’ => array(
‘title’,
‘editor’,
‘thumbnail’,
‘revisions’,
‘excerpt’,
‘custom-fields’,
)
)
);
}
add_action(‘init’, ‘add_custom_post’);//カテゴリ追加
function add_taxonomy(){
//WORKS
register_taxonomy(
‘info-cat’,
‘brand’,
array(
‘label’ => ‘categories’,
‘singular_label’ => ‘categories’,
‘labels’ => array(
‘all_items’ => ‘categories list’,
‘add_new_item’ => ‘add category’
),
‘public’ => true,
‘show_ui’ => true,
‘show_in_nav_menus’ => true,
‘hierarchical’ => true
)
);
}
add_action( ‘init’, ‘add_taxonomy’ );
- The topic ‘[WC Vendors] Can vendors post blog?’ is closed to new replies.