Portfolios
portfolio cpt for a client with very limited, specifc needs
// Register Custom Post Type function itc_cpt_portfolio() { $labels = array( 'name' => 'Portfolios', 'singular_name' => 'Portfolio', 'menu_name' => 'Portfolios', 'name_admin_bar' => '', 'parent_item_colon' => '', 'all_items' => 'All Portfolios', 'add_new_item' => 'Add New Portfolio', 'add_new' => 'Add New', 'new_item' => 'New Portfolio', 'edit_item' => 'Edit Portfolio', 'update_item' => 'Update Portfolio', 'view_item' => 'View Portfolio', 'search_items' => 'Search Portfolio', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $args = array( 'label' => 'portfolio', 'description' => 'Portfolios of highlighted projects', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'custom-fields', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-format-gallery', 'show_in_admin_bar' => false, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => false, 'capability_type' => 'page', ); register_post_type( 'portfolio', $args ); } // Hook into the 'init' action add_action( 'init', 'itc_cpt_portfolio', 0 );