Hi , I just can't seem to get my Taxonomy to work. The code looks fine but maybe I am missing something becuase my register_taxonomy is not working on my local install of wordpress. Please see the code below. I have included the custom posts code aswell, Is it possible to get the orginal code to measure against. Thanks
//ADD CUSTOM POST TYPES***************/
function Aw_post_types(){
$lables = array(
'name' => 'Products',
'singular_name' => 'Product',
'menu_name' => 'Product',
'name_admin_bar' => 'Product',
'add_new' => 'Add New',
'add_new_item' => 'Add New Product',
'new_item' => 'New Product',
'edit_item' => 'Edit Product',
'view_item' => 'View Product',
'all_items' => 'All Products',
'search_items' => 'Search Products',
'parent_item_colon' => 'Parent Products',
'not_found' => 'No Products Found',
'not_found_in_trash' => 'No Product Found in Trash',
);
$args = array(
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'labels' => $lables,
'publicly_queryable' => true,
'exclude_from_search' => false,
'label' => 'Products',
'has_archive' => true,
'supports' => array('title','editor','author','comments'),
);
register_post_type('Aw_product',$args);
}
add_action('init','Aw_post_types');
/***************************************************/
/********************TAXONOMIES *******************/
function Aw_tax_types(){
$tax_lables = array(
'name' => 'Colors',
'singular_name' => 'Color',
'search_items' => 'Search Colors',
'all_items ' => 'All Colors',
'parent_item' => 'Parent Color',
'parent_item_colon' => 'Parent Color',
'edit_item' => 'Edit Color',
'update_item' => 'Update Color',
'add_new_item' => 'Add New Color',
'new_item_name' => 'New Color Name',
'menu_name' => 'Color',
);
$tax_args = array(
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'label' => 'Colors',
'labels' => $tax_lables,
);
register_taxonomy('Aw_color', array('Aw_product' ) , $tax_args );
}
add_action('init','Aw_tax_types');