I am creating my own posts in wordpress however I have hit a little problem and im not sure how to fix it.
The below register_post_type creates an Invalid post type error.
add_action( 'init', 'create_post_type' );
function create_post_type() {
register_post_type( 'talent',
array(
'labels' => array(
'name' => __( 'Talent' ),
'singular_name' => __( 'talent' )
),
'public' => true,
'has_archive' => true,
)
);
}
it doesn't seem to like the word talent. If I change 'talent' to 'arist' it works. However it needs to be 'talent' for the URL. Ive checked on wordpress and using talent shouldn't cause any conflicts with default wordpress settings.
talent
?