// Register Custom Post Type function testimonial_post_type() { $labels = array( 'name' => 'Testimonials', 'singular_name' => 'Testimonial', 'menu_name' => 'Testimonials', 'name_admin_bar' => 'Testimonial', 'archives' => 'TestimonialArchives', 'attributes' => 'Testimonial Attributes', 'parent_item_colon' => 'Parent Testimonial:', 'all_items' => 'All Testimonials', 'add_new_item' => 'Add New Testimonial', 'add_new' => 'Add New', 'new_item' => 'New Testimonial', 'edit_item' => 'Edit Testimonial', 'update_item' => 'Update Testimonial', 'view_item' => 'View Testimonial', 'view_items' => 'View Testimonials', 'search_items' => 'Search Testimonial', '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 testimonial', 'uploaded_to_this_item' => 'Uploaded to this testimonial', 'items_list' => 'Testimonials list', 'items_list_navigation' => 'Testimonials list navigation', 'filter_items_list' => 'Filter testimonials list', ); $args = array( 'label' => 'Testimonial', 'description' => 'This is the testimonial custom post type.', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'revisions' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-format-quote', 'show_in_admin_bar' => true, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'testimonial', $args ); } add_action( 'init', 'testimonial_post_type', 0 );