<?php
add_action('init', 'banner_logos_post_type');
function banner_logos_post_type() {
    $labels = array(
        'name' => _x('Banner Logos', 'post type general name'),
        'singular_name' => _x('Banner Logo', 'post type singular name'),
        'add_new' => _x('Add New Banner Logo', 'Team Member'),
        'add_new_item' => __('Add Banner Logo'),
        'edit_item' => __('Edit Banner Logo'),
        'new_item' => __('New Banner Logo'),
        'view_item' => __('View Banner Logo'),
        'search_items' => __('Search Banner Logo'),
        'not_found' =>  __('Nothing found'),
        'not_found_in_trash' => __('Nothing found in Trash'),
        'parent_item_colon' => ''
    );

    $args = array(
        'labels' => $labels,
        'public' => true,
        'publicly_queryable'=> false,
        'show_ui' => true,
        'query_var' => true,
        'rewrite' => array('slug' => 'banner_logos'),
        'capability_type' => 'post',
        'hierarchical' => false,
        'menu_position' => 9,
        'supports' => array('title','editor','page-attributes','thumbnail')
    ); 
    register_post_type('banner_logos', $args); // Slug in lowercase
}

add_action( 'init', 'banner_logos_taxonomies', 0 );
function banner_logos_taxonomies() {
    $labels = array(
        'name'              => _x( 'Categories', 'taxonomy general name' ),
        'singular_name'     => _x( 'Category', 'taxonomy singular name' ),
        'search_items'      => __( 'Search Categories' ),
        'all_items'         => __( 'All Categories' ),
        'parent_item'       => __( 'Parent Category' ),
        'parent_item_colon' => __( 'Parent Category:' ),
        'edit_item'         => __( 'Edit Category' ),
        'update_item'       => __( 'Update Category' ),
        'add_new_item'      => __( 'Add New Category' ),
        'new_item_name'     => __( 'New Category Name' ),
        'menu_name'         => __( 'Categories' ),
    );

    $args = array(
        'hierarchical'      => true,
        'labels'            => $labels,
        'show_ui'           => true,
        'show_admin_column' => true,
        'query_var'         => true,
        'rewrite'           => array( 'slug' => 'categories' ),
    );

    register_taxonomy('banner_logos_categories', array('banner_logos'), $args);
}
