Works of Mystique
Post type for https://mystique.nu
if ( ! function_exists('create_work_post_type') ) { // Register Custom Post Type function create_work_post_type() { $labels = array( 'name' => _x( 'Works', 'Post Type General Name', 'ticketbox' ), 'singular_name' => _x( 'Work', 'Post Type Singular Name', 'ticketbox' ), 'menu_name' => __( 'Works of magic', 'ticketbox' ), 'name_admin_bar' => __( 'Works of magic', 'ticketbox' ), 'archives' => __( 'Work Archives', 'ticketbox' ), 'attributes' => __( 'Work Attributes', 'ticketbox' ), 'parent_item_colon' => __( 'Parent Work:', 'ticketbox' ), 'all_items' => __( 'All Works', 'ticketbox' ), 'add_new_item' => __( 'Add New Work', 'ticketbox' ), 'add_new' => __( 'Add New', 'ticketbox' ), 'new_item' => __( 'New Work', 'ticketbox' ), 'edit_item' => __( 'Edit Work', 'ticketbox' ), 'update_item' => __( 'Update Work', 'ticketbox' ), 'view_item' => __( 'View Work', 'ticketbox' ), 'view_items' => __( 'View Works', 'ticketbox' ), 'search_items' => __( 'Search Work', 'ticketbox' ), 'not_found' => __( 'Not found', 'ticketbox' ), 'not_found_in_trash' => __( 'Not found in Trash', 'ticketbox' ), 'featured_image' => __( 'Featured Work', 'ticketbox' ), 'set_featured_image' => __( 'Set featured image', 'ticketbox' ), 'remove_featured_image' => __( 'Remove featured image', 'ticketbox' ), 'use_featured_image' => __( 'Use as featured image', 'ticketbox' ), 'insert_into_item' => __( 'Insert into work', 'ticketbox' ), 'uploaded_to_this_item' => __( 'Uploaded to this work', 'ticketbox' ), 'items_list' => __( 'Works list', 'ticketbox' ), 'items_list_navigation' => __( 'Works list navigation', 'ticketbox' ), 'filter_items_list' => __( 'Filter works list', 'ticketbox' ), ); $rewrite = array( 'slug' => 'work', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Work', 'ticketbox' ), 'description' => __( 'The pieces of work that have been performed.', 'ticketbox' ), 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'taxonomies' => array( 'performers', 'requirements', 'format' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-visibility', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'works', 'exclude_from_search' => true, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'post', ); register_post_type( 'piece_of_work', $args ); } add_action( 'init', 'create_work_post_type', 0 ); }