Post Series Custom Post Type
Post Series Custom Post Type, a part of this https://generatewp.com/?p=12314 tutorial
// Register Custom Post Type function register_post_series_custom_post_type() { $labels = array( 'name' => _x( 'Series', 'Post Type General Name', 'GWP' ), 'singular_name' => _x( 'Series', 'Post Type Singular Name', 'GWP' ), 'menu_name' => __( 'Series', 'GWP' ), 'parent_item_colon' => __( 'Parent Series:', 'GWP' ), 'all_items' => __( 'All Series', 'GWP' ), 'view_item' => __( 'View Series', 'GWP' ), 'add_new_item' => __( 'Add New Series', 'GWP' ), 'add_new' => __( 'Add Series', 'GWP' ), 'edit_item' => __( 'Edit Series', 'GWP' ), 'update_item' => __( 'Update Series', 'GWP' ), 'search_items' => __( 'Search Series', 'GWP' ), 'not_found' => __( 'Not found', 'GWP' ), 'not_found_in_trash' => __( 'Not found in Trash', 'GWP' ), ); $args = array( 'label' => __( 'pseries', 'GWP' ), 'description' => __( 'Post Series informational pages', 'GWP' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-portfolio', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'pseries', $args ); } // Hook into the 'init' action add_action( 'init', 'register_post_series_custom_post_type', 0 );