Cannot add post type more than four
-
Please help…
I created custom post types before using code in functions.php without having any problems using the latest version of wordpress to my projects. I can create any number of post types before. But now, using the same code to another project, only four post types are showing on dashboard.
This is my code:
<?php add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'Profile', array( 'labels' => array( 'name' => __( 'Profile' ), 'singular_name' => __( 'Profile' ) ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'profile'), 'supports' => array('title', 'page-attributes', 'editor'), 'menu_position' => 20, 'description' => 'profile' ) ); register_post_type( 'The Core Team', array( 'labels' => array( 'name' => __( 'The Core Team' ), 'singular_name' => __( 'The Core Team' ) ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'the-core-team'), 'supports' => array('title', 'page-attributes', 'editor'), 'menu_position' => 20, 'description' => 'the-core-team' ) ); register_post_type( 'Services', array( 'labels' => array( 'name' => __( 'Services' ), 'singular_name' => __( 'Services' ) ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'services'), 'supports' => array('title', 'page-attributes', 'editor'), 'menu_position' => 20, 'description' => 'services' ) ); register_post_type( 'Works', array( 'labels' => array( 'name' => __( 'Works' ), 'singular_name' => __( 'Works' ) ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'works'), 'supports' => array('title', 'page-attributes', 'editor', 'thumbnail'), 'menu_position' => 20, 'description' => 'works' ) ); register_post_type( 'Clients', array( 'labels' => array( 'name' => __( 'Clients' ), 'singular_name' => __( 'Clients' ) ), 'public' => true, 'hierarchical' => true, 'rewrite' => array('slug' => 'clients'), 'supports' => array('title', 'page-attributes', 'editor', 'thumbnail'), 'menu_position' => 20, 'description' => 'clients' ) ); } ?>
“Clients” post type is not showing in dashboard.
Hope you can help me.. Thanks!
- The topic ‘Cannot add post type more than four’ is closed to new replies.