Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

                             )
                       );
}
share|improve this question

closed as too localized by toscho Feb 19 at 0:00

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.