// Register Custom Post Type function custom_post_type() { $labels = array( 'name' => _x( 'Images', 'Post Type General Name', 'dezoito' ), 'singular_name' => _x( 'Image', 'Post Type Singular Name', 'dezoito' ), 'menu_name' => __( 'Images', 'dezoito' ), 'name_admin_bar' => __( 'Image', 'dezoito' ), 'archives' => __( 'Image Archives', 'dezoito' ), 'attributes' => __( 'Image Attributes', 'dezoito' ), 'parent_item_colon' => __( 'Parent Image:', 'dezoito' ), 'all_items' => __( 'All Images', 'dezoito' ), 'add_new_item' => __( 'Add New Image', 'dezoito' ), 'add_new' => __( 'Add New', 'dezoito' ), 'new_item' => __( 'New Image', 'dezoito' ), 'edit_item' => __( 'Edit Image', 'dezoito' ), 'update_item' => __( 'Update Image', 'dezoito' ), 'view_item' => __( 'View Image', 'dezoito' ), 'view_items' => __( 'View Images', 'dezoito' ), 'search_items' => __( 'Search Image', 'dezoito' ), 'not_found' => __( 'Not found', 'dezoito' ), 'not_found_in_trash' => __( 'Not found in Trash', 'dezoito' ), 'featured_image' => __( 'Featured Image', 'dezoito' ), 'set_featured_image' => __( 'Set featured image', 'dezoito' ), 'remove_featured_image' => __( 'Remove featured image', 'dezoito' ), 'use_featured_image' => __( 'Use as featured image', 'dezoito' ), 'insert_into_item' => __( 'Insert into item', 'dezoito' ), 'uploaded_to_this_item' => __( 'Uploaded to this Image', 'dezoito' ), 'items_list' => __( 'Images list', 'dezoito' ), 'items_list_navigation' => __( 'Images list navigation', 'dezoito' ), 'filter_items_list' => __( 'Filter images list', 'dezoito' ), ); $args = array( 'label' => __( 'Image', 'dezoito' ), 'description' => __( 'Projects Single Image', 'dezoito' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag', 'point_of_view', 'set', 'time' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-images-alt2', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'image', $args ); } add_action( 'init', 'custom_post_type', 0 );