_x( 'Courses', 'Post Type General Name', '1fix' ), 'singular_name' => _x( 'Course', 'Post Type Singular Name', '1fix' ), 'menu_name' => __( 'Courses', '1fix' ), 'name_admin_bar' => __( 'Courses', '1fix' ) ); $args = array( 'label' => __( 'Course', '1fix' ), 'labels' => $labels, 'hierarchical' => true, 'public' => true ); register_post_type( 'course', $args ); $labels = array( 'name' => _x( 'Lessons', 'Post Type General Name', '1fix' ), 'singular_name' => _x( 'Lesson', 'Post Type Singular Name', '1fix' ), 'menu_name' => __( 'Lessons', '1fix' ), 'name_admin_bar' => __( 'Lessons', '1fix' ) ); $args = array( 'label' => __( 'Lesson', '1fix' ), 'labels' => $labels, 'hierarchical' => false, 'public' => true ); register_post_type( 'lesson', $args ); } add_action( 'init', 'my_register_cpt' );