How to Create a Custom post type by editing the functions.php file

/**how to register custom post type */
register_post_type('staff', array(
'label' => __('Staff'),
'singular_label' => __('Staff'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => false,
'rewrite' => false, 'query_var' => true,
'supports' => array('title', 'editor', 'thumbnail'),
'taxonomies' => array( 'post_tag')
));

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.