How to Create CPT in WordPress ?
Register Custom Post In WordPress <?php /** * Registers the "testimonial" post type. */ add_action ( 'init' , 'ch_testimonials_post_type_register' ); function ch_testimonials_post_type_register () { $labels = array ( 'name' => __ ( 'Testimonials' , 'ch-cpt' ), 'singular_name' => __ ( 'Testimonial' , 'ch-cpt' ), 'all_items' => __ ( 'All Testimonials' , 'ch-cpt' ), 'add_new' => _x ( 'Add New' , 'testimonial' , 'ch-cpt' ), 'add_new_item' => __ ( 'Add New Testimonial' , 'ch-cpt' ), 'edit_item' => __ ( 'Edit Testimonial' , 'ch-cpt' ),