Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*--------------- Register post type --------------------*/
- function create_post_type() {
- //Register post type Team
- register_post_type( 'team',
- array(
- 'labels' => array(
- 'name' => __( 'Team' ),
- 'singular_name' => __( 'Team-member' ),
- 'add_new' => __('Add team-member'),
- ),
- 'public' => true,
- 'has_archive' => true,
- 'menu_icon' => 'dashicons-businessman',
- 'supports' => array('title','editor', 'thumbnail', 'custom-fields', 'page-attributes'),
- )
- );
- //there you can create next post types ...
- }
- add_action( 'init', 'create_post_type' );
- /*--------------- /Register post type --------------------*/
Add Comment
Please, Sign In to add comment