I have this function that adds to custom post types which is very simple and straight forward as seen below;
function create_hr_post_type() {
register_post_type( 'informationtechnology',
array(
'labels' => array(
'name' => __( 'Information Technology' ),
'singular_name' => __( 'Information Technology' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'informationtechnology'),
)
);
register_post_type( 'humanresource',
array(
'labels' => array(
'name' => __( 'HR' ),
'singular_name' => __( 'HR' )
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'humanresource'),
)
);
}
add_action( 'init', 'create_hr_post_type' );
However, only one post type is being registered on checking my admin left bar. I only see the the HR post type! What is going on in here? What i'm i missing?
I have tried reordering the code so that the IT type comes first but still doesn't work.