/** * Create Slide post type * @since 1.0.0 * @link http://codex.wordpress.org/Function_Reference/register_post_type */ function sk_register_slide_post_type() { $labels = array( 'name' => 'Slides', 'singular_name' => 'Slide', 'add_new' => 'Add New', 'add_new_item' => 'Add New Slide', 'edit_item' => 'Edit Slide', 'new_item' => 'New Slide', 'view_item' => 'View Slide', 'search_items' => 'Search Slides', 'not_found' => 'No slides found', 'not_found_in_trash' => 'No slides found in trash', 'parent_item_colon' => '', 'menu_name' => 'Slides' ); $args = array( 'labels' => $labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'show_in_menu' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'menu_position' => null, 'supports' => array( 'title','editor','thumbnail' ) ); register_post_type( 'slide', $args ); } add_action( 'init', 'sk_register_slide_post_type' );