testimonials
// Register Custom Post Type
function cpt_testimonial() {
$labels = array(
'name' => _x( 'Testimonials', 'Post Type General Name', '_s' ),
'singular_name' => _x( 'Testimonial', 'Post Type Singular Name', '_s' ),
'menu_name' => __( 'Testimonials', '_s' ),
'name_admin_bar' => __( 'Testimonial', '_s' ),
'archives' => __( 'Testimonial Archives', '_s' ),
'parent_item_colon' => __( 'Parent Testimonial:', '_s' ),
'all_items' => __( 'All Testimonials', '_s' ),
'add_new_item' => __( 'Add New Testimonials', '_s' ),
'add_new' => __( 'Add New', '_s' ),
'new_item' => __( 'New Testimonial', '_s' ),
'edit_item' => __( 'Edit Testimonial', '_s' ),
'update_item' => __( 'Update Testimonial', '_s' ),
'view_item' => __( 'View Testimonial', '_s' ),
'search_items' => __( 'Search Testimonial', '_s' ),
'not_found' => __( 'Not found', '_s' ),
'not_found_in_trash' => __( 'Not found in Trash', '_s' ),
'featured_image' => __( 'Featured Image', '_s' ),
'set_featured_image' => __( 'Set featured image', '_s' ),
'remove_featured_image' => __( 'Remove featured image', '_s' ),
'use_featured_image' => __( 'Use as featured image', '_s' ),
'insert_into_item' => __( 'Insert into Testimonial', '_s' ),
'uploaded_to_this_item' => __( 'Uploaded to this Testimonial', '_s' ),
'items_list' => __( 'Testimonials list', '_s' ),
'items_list_navigation' => __( 'Testimonials list navigation', '_s' ),
'filter_items_list' => __( 'Filter Testimonials list', '_s' ),
);
$rewrite = array(
'slug' => 'testimonials',
'with_front' => true,
'pages' => true,
'feeds' => false,
);
$args = array(
'label' => __( 'Testimonial', '_s' ),
'description' => __( 'Testimonials from your customers.', '_s' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-format-quote',
'show_in_admin_bar' => false,
'show_in_nav_menus' => false,
'can_export' => true,
'has_archive' => 'testimonials',
'exclude_from_search' => true,
'publicly_queryable' => true,
'query_var' => 'testimonials',
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'rella-testimonials', $args );
}
add_action( 'init', 'cpt_testimonial', 0 );