Service CPT
Services Custom Post Type
// Register Custom Post Type function services_post_type() { $labels = array( 'name' => 'Services', 'singular_name' => 'Service', 'menu_name' => 'Services', 'name_admin_bar' => 'Service', 'archives' => 'Service Archives', 'attributes' => 'Service Attributes', 'parent_item_colon' => 'Parent Service:', 'all_items' => 'All Services', 'add_new_item' => 'Add New Service', 'add_new' => 'Add Service', 'new_item' => 'New Service', 'edit_item' => 'Edit Service', 'update_item' => 'Update Service', 'view_item' => 'View Service', 'view_items' => 'View Services', 'search_items' => 'Search Service', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Insert into Service', 'uploaded_to_this_item' => 'Uploaded to this Service', 'items_list' => 'Services list', 'items_list_navigation' => 'Services list navigation', 'filter_items_list' => 'Filter Services list', ); $capabilities = array( 'edit_post' => 'edit_post', 'read_post' => 'read_post', 'delete_post' => 'delete_post', 'edit_posts' => 'edit_posts', 'edit_others_posts' => 'edit_others_posts', 'publish_posts' => 'publish_posts', 'read_private_posts' => 'read_private_posts', ); $args = array( 'label' => 'Service', 'description' => 'Service', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-welcome-view-site', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capabilities' => $capabilities, 'show_in_rest' => true, ); register_post_type( 'service', $args ); } add_action( 'init', 'services_post_type', 0 );