Templates
Templated Processes
// Register Custom Post Type function template_post_type() { $labels = array( 'name' => _x( 'Templates', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Template', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Template Types', 'text_domain' ), 'name_admin_bar' => __( 'Template Type', 'text_domain' ), 'archives' => __( 'Template Archives', 'text_domain' ), 'attributes' => __( 'Template Attributes', 'text_domain' ), 'parent_item_colon' => __( 'Parent Template:', 'text_domain' ), 'all_items' => __( 'All Template', 'text_domain' ), 'add_new_item' => __( 'Add New Template', 'text_domain' ), 'add_new' => __( 'Add New', 'text_domain' ), 'new_item' => __( 'New Template', 'text_domain' ), 'edit_item' => __( 'Edit Template', 'text_domain' ), 'update_item' => __( 'Update Template', 'text_domain' ), 'view_item' => __( 'View Template', 'text_domain' ), 'view_items' => __( 'View Templates', 'text_domain' ), 'search_items' => __( 'Search Template', 'text_domain' ), 'not_found' => __( 'Template Not found', 'text_domain' ), 'not_found_in_trash' => __( 'Template Not found in Trash', 'text_domain' ), 'featured_image' => __( 'Featured Template Image', 'text_domain' ), 'set_featured_image' => __( 'Set featured template image', 'text_domain' ), 'remove_featured_image' => __( 'Remove featured template image', 'text_domain' ), 'use_featured_image' => __( 'Use as featured template image', 'text_domain' ), 'insert_into_item' => __( 'Insert into template', 'text_domain' ), 'uploaded_to_this_item' => __( 'Uploaded to this template', 'text_domain' ), 'items_list' => __( 'Templates list', 'text_domain' ), 'items_list_navigation' => __( 'Templates list navigation', 'text_domain' ), 'filter_items_list' => __( 'Filter templates list', 'text_domain' ), ); $rewrite = array( 'slug' => 'template', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $capabilities = array( 'edit_post' => 'edit_template', 'read_post' => 'read_template', 'delete_post' => 'delete_template', 'edit_posts' => 'edit_templates', 'edit_others_posts' => 'edit_others_templates', 'publish_posts' => 'publish_templates', 'read_private_posts' => 'read_private_templates', ); $args = array( 'label' => __( 'Template', 'text_domain' ), 'description' => __( 'Template Description', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor' ), 'taxonomies' => array( 'category', 'template_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capabilities' => $capabilities, ); register_post_type( 'template', $args ); } add_action( 'init', 'template_post_type', 0 );