How Can I Create WordPress Custom Post Type

How can I setup a custom post type for my WordPress site, like post, page

You can put the following codes in function.php from your theme

function create_posttype() {
    register_post_type( 'team',
    array(
        'labels' => array(
            'name' => __( 'Teams' ),
            'singular_name' => __( 'Team' )
        ),
        'public' => true,
        'has_archive' => true,
        'rewrite' => array('slug' => 'team'),
        )
    );
}

add_action( 'init', 'create_posttype' );

You can find other options from the following link
http://codex.wordpress.org/Function_Reference/register_post_type

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments