Of course.. sorry for the wrong wording!
I dont mean to be cheeky but could you look at the following and let me know if you spot any errors ;) I honestly cannot see it!
add_action('init', 'custom_post_types_register');
function custom_post_types_register() {
$args = array(
'label' => __('Info Centre'),
'singular_label' => __('Info Centre'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array("slug" => "information-centre",'with_front' => true), // Permalinks format
'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Info' ),
'edit' => __( 'Edit' ),
'edit_item' => __( 'Edit Info' ),
'new_item' => __( 'New Info' ),
'view' => __( 'View Info' ),
'view_item' => __( 'View Info' ),
'search_items' => __( 'Search Info Centre' ),
'not_found' => __( 'No info found' ),
'not_found_in_trash' => __( 'No info found in Trash' ),
'parent' => __( 'Parent Info' ),
'menu_position' =>__( 20 ),
// 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/info-centre-icon.png' ),
);
register_post_type( 'info' , $args );
$args2 = array(
'label' => __('Services'),
'singular_label' => __('Services'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array("slug" => "services",'with_front' => true), // Permalinks format
'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Service' ),
'edit' => __( 'Edit' ),
'edit_item' => __( 'Edit Service' ),
'new_item' => __( 'New Service' ),
'view' => __( 'View Service' ),
'view_item' => __( 'View Service' ),
'search_items' => __( 'Search Services' ),
'not_found' => __( 'No service found' ),
'not_found_in_trash' => __( 'No service found in Trash' ),
'parent' => __( 'Parent Service' ),
'menu_position' =>__( 21 ),
// 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ),
);
register_post_type( 'services' , $args2 );
$args3 = array(
'label' => __('Agencies'),
'singular_label' => __('Agencies'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array("slug" => "agencies",'with_front' => true), // Permalinks format
'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Agencies' ),
'edit' => __( 'Edit' ),
'edit_item' => __( 'Edit Agencies' ),
'new_item' => __( 'New Agencies' ),
'view' => __( 'View Agencies' ),
'view_item' => __( 'View Agencies' ),
'search_items' => __( 'Search Agencies' ),
'not_found' => __( 'No agencies found' ),
'not_found_in_trash' => __( 'No agencies found in Trash' ),
'parent' => __( 'Parent Agencies' ),
'menu_position' =>__( 22 ),
// 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ),
);
register_post_type( 'agencies' , $args3 );
$args4 = array(
'label' => __('Contact'),
'singular_label' => __('Contact'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array("slug" => "contact",'with_front' => true), // Permalinks format
'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Contact' ),
'edit' => __( 'Edit' ),
'edit_item' => __( 'Edit Contact' ),
'new_item' => __( 'New Contact' ),
'view' => __( 'View Contact' ),
'view_item' => __( 'View Contact' ),
'search_items' => __( 'Search Contact' ),
'not_found' => __( 'No contact found' ),
'not_found_in_trash' => __( 'No contact found in Trash' ),
'parent' => __( 'Parent Contact' ),
'menu_position' =>__( 23 ),
// 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ),
);
register_post_type( 'contact' , $args4 );
$args5 = array(
'label' => __('Mentoring'),
'singular_label' => __('Mentoring'),
'public' => true,
'show_ui' => true,
'capability_type' => 'post',
'hierarchical' => true,
'rewrite' => array("slug" => "mentoring",'with_front' => true), // Permalinks format
'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail', 'page-attributes' ),
'add_new' => __( 'Add New' ),
'add_new_item' => __( 'Add New Mentoring' ),
'edit' => __( 'Edit' ),
'edit_item' => __( 'Edit Mentoring' ),
'new_item' => __( 'New Mentoring' ),
'view' => __( 'View Mentoring' ),
'view_item' => __( 'View Mentoring' ),
'search_items' => __( 'Search Mentoring' ),
'not_found' => __( 'No Mentoring found' ),
'not_found_in_trash' => __( 'No Mentoring found in Trash' ),
'parent' => __( 'Parent Mentoring' ),
'menu_position' =>__( 24 ),
// 'menu_icon' =>__( get_stylesheet_directory_uri() . '/assets/images/admin/services-icon.png' ),
);
register_post_type( 'mentoring' , $args5 );
}
Thanks!