Proposal – Custom Post Type
A custom post type to store proposals
// Register Custom Post Type function website_proposals() { $labels = array( 'name' => 'Proposals', 'singular_name' => 'Proposal', 'menu_name' => 'Proposals', 'name_admin_bar' => 'Proposals', 'parent_item_colon' => '', 'all_items' => 'All Proposals', 'add_new_item' => 'Create New Proposal', 'add_new' => 'Create New Proposal', 'new_item' => 'New Proposal', 'edit_item' => 'Edit Proposal', 'update_item' => 'Update Proposal', 'view_item' => 'View Proposal', 'search_items' => '', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $rewrite = array( 'slug' => 'proposals', 'with_front' => true, 'pages' => false, 'feeds' => false, ); $args = array( 'label' => 'Proposal', 'description' => 'Website proposals.', 'labels' => $labels, 'supports' => array( 'title', 'revisions', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 15, 'menu_icon' => 'dashicons-welcome-write-blog', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'proposal', $args ); } add_action( 'init', 'website_proposals', 0 );