Portfolio Item Custom Post Type
Portfolio Item Custom Post Type
// Register Custom Post Type function portfolio_items() { $labels = array( 'name' => 'Portfolio', 'singular_name' => 'Portfolio Item', 'menu_name' => 'Portfolio Item', 'parent_item_colon' => 'Parent Item:', 'all_items' => 'All Portfolio Items', 'view_item' => 'View Item', 'add_new_item' => 'Add New Portfolio Item', 'add_new' => 'Add New', 'edit_item' => 'Edit Item', 'update_item' => 'Update Item', 'search_items' => 'Search Item', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $args = array( 'labels' => $labels, 'supports' => array( 'title', 'editor', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-media-document', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'portfolio_item', $args ); } // Hook into the 'init' action add_action( 'init', 'portfolio_items', 0 );