Tennis: Testimonial
Custom Post type
// Register Custom Post Type function tennis_post_type_testimonial() { $labels = array( 'name' => 'Testimonials', 'singular_name' => 'Testimonial', 'menu_name' => 'Testimonials', 'parent_item_colon' => 'Parent Testimonial:', 'all_items' => 'All Testimonials', 'view_item' => 'View Testimonials', 'add_new_item' => 'Add New Testimonial', 'add_new' => 'Add New', 'edit_item' => 'Edit Testimonial', 'update_item' => 'Update Testimonial', 'search_items' => 'Testimonial', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $args = array( 'label' => 'tennis_testimonial', 'description' => 'Testimonial', 'labels' => $labels, 'supports' => array( 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-testimonial', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => true, 'publicly_queryable' => false, 'capability_type' => 'page', ); register_post_type( 'tennis_testimonial', $args ); } // Hook into the 'init' action add_action( 'init', 'tennis_post_type_testimonial', 0 );