Track CTP
Create tracks for users to follow in Rising Heroes
// Register Custom Post Type function track_post_type() { $labels = array( 'name' => _x( 'Tracks', 'Post Type General Name', 'rising_heroes' ), 'singular_name' => _x( 'Track', 'Post Type Singular Name', 'rising_heroes' ), 'menu_name' => __( 'Tracks', 'rising_heroes' ), 'name_admin_bar' => __( 'Tracks', 'rising_heroes' ), 'archives' => __( 'Track Archives', 'rising_heroes' ), 'attributes' => __( 'Track Attributes', 'rising_heroes' ), 'parent_item_colon' => __( 'Parent Track :', 'rising_heroes' ), 'all_items' => __( 'All Track', 'rising_heroes' ), 'add_new_item' => __( 'Add New Track', 'rising_heroes' ), 'add_new' => __( 'Add New', 'rising_heroes' ), 'new_item' => __( 'New Track', 'rising_heroes' ), 'edit_item' => __( 'Edit Track', 'rising_heroes' ), 'update_item' => __( 'Update Track', 'rising_heroes' ), 'view_item' => __( 'View Track', 'rising_heroes' ), 'view_items' => __( 'View Track', 'rising_heroes' ), 'search_items' => __( 'Search Track', 'rising_heroes' ), 'not_found' => __( 'Not found', 'rising_heroes' ), 'not_found_in_trash' => __( 'Not found in Trash', 'rising_heroes' ), 'featured_image' => __( 'Featured Image', 'rising_heroes' ), 'set_featured_image' => __( 'Set featured image', 'rising_heroes' ), 'remove_featured_image' => __( 'Remove featured image', 'rising_heroes' ), 'use_featured_image' => __( 'Use as featured image', 'rising_heroes' ), 'insert_into_item' => __( 'Insert into Track', 'rising_heroes' ), 'uploaded_to_this_item' => __( 'Uploaded to this Track', 'rising_heroes' ), 'items_list' => __( 'TrackS list', 'rising_heroes' ), 'items_list_navigation' => __( 'Tracks list navigation', 'rising_heroes' ), 'filter_items_list' => __( 'Filter Tracks list', 'rising_heroes' ), ); $rewrite = array( 'slug' => 'assignment', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Track', 'rising_heroes' ), 'description' => __( 'A track of levels with missions for Rising Heroes users to complete', 'rising_heroes' ), 'labels' => $labels, 'supports' => array( 'title', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-hammer', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'track', $args ); } add_action( 'init', 'track_post_type', 0 );