Resource
Product Resources
if ( ! function_exists( 'custom_taxonomy' ) ) {
// Register Custom Taxonomy
function custom_taxonomy() {
$labels = array(
'name' => _x( 'Resources', 'Taxonomy General Name', 'sencha' ),
'singular_name' => _x( 'Resource', 'Taxonomy Singular Name', 'sencha' ),
'menu_name' => __( 'Resource', 'sencha' ),
'all_items' => __( 'All Resources', 'sencha' ),
'parent_item' => __( 'Parent Resource', 'sencha' ),
'parent_item_colon' => __( 'Parent Resource:', 'sencha' ),
'new_item_name' => __( 'New Resource Name', 'sencha' ),
'add_new_item' => __( 'Add New Resource', 'sencha' ),
'edit_item' => __( 'Edit Resource', 'sencha' ),
'update_item' => __( 'Update Resource', 'sencha' ),
'separate_items_with_commas' => __( 'Separate resources with commas', 'sencha' ),
'search_items' => __( 'Search Resources', 'sencha' ),
'add_or_remove_items' => __( 'Add or remove resources', 'sencha' ),
'choose_from_most_used' => __( 'Choose from the most used resources', 'sencha' ),
'not_found' => __( 'Not Found', 'sencha' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'resource', array( 'whitepaper', 'videos', 'webinar', 'datasheet', 'faq', 'legal_document' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_taxonomy', 0 );
}