29 December 2024

31 March 2021

 function portfolio_register() {    $labels = array(        'name' => _x('Portfolio', 'post type general name'),        'singular_name' => _x('Portfolio Item', 'post type singular name'),        'add_new' => _x('Add New', 'portfolio item'),       ...
 // Our custom post type functionfunction create_posttype() {     register_post_type( 'movies',    // CPT Options        array(            'labels' => array(                'name'...