I’ve created a custom post type with my requirements. I used “WP Video Gen” as menu label. But I want red marked item to name as “Videos”. Is it possible?
Ref: http://ScrnSht.com/jcvlhy
Thanks in advanced.
I’ve created a custom post type with my requirements. I used “WP Video Gen” as menu label. But I want red marked item to name as “Videos”. Is it possible?
Ref: http://ScrnSht.com/jcvlhy
Thanks in advanced.
When you register your custom post type there’s an argument called ‘labels’ you can pass to register_post_type()
. The argument is an associative array with named labels for the menu and screens of your post type. Specifically, the label you are looking for is called ‘all_items’.
I don’t know your code for registering the post type, but here’s a short example that does what you asked for:
function video_gen_init() {
register_post_type( 'video_gen', array(
'public' => true,
'labels' => array(
'name' => 'WP Video Gen',
'all_items' => 'Videos',
),
) );
}
add_action( 'init', 'video_gen_init' );
Other available labels are (according to the WordPress Codex by the time of writing):