This is what my code looks like:
add_action( 'init', 'create_my_post_types' );
function create_my_post_types() {
register_post_type( 'competitor_claims',
array(
'labels' => array(
'name' => __( 'Competitor Claims' ),
'singular_name' => __( 'Competitor Claim' )
),
'public' => true,
'show_ui' => true, // UI in admin panel
'_builtin' => false, // It's a custom post type, not built in!
'_edit_link' => 'post.php?post=%d',
'capability_type' => 'post',
'menu_position' => 20,
'hierarchical' => true,
'query_var' => true,
'supports' => array(
'title',
'editor',
'excerpt',
'custom-fields',
'thumbnail',
'page-attributes'
),
'rewrite' => array(
'slug' => 'claims',
'with_front' => false
),
// Add taxonomies...
'permalink_epmask' => EP_PERMALINK
)
);
}