Skip to content

Instantly share code, notes, and snippets.

@hunk
Created June 25, 2010 03:37
Show Gist options
  • Save hunk/452361 to your computer and use it in GitHub Desktop.
Save hunk/452361 to your computer and use it in GitHub Desktop.
<?php
add_action( 'init', 'create_book_taxonomies', 0 );
function create_book_taxonomies() {
register_taxonomy(
'category_hunker',
'post',
array(
'hierarchical' => true,
'show_ui' => true,
'query_var' => true,
'label' => 'hunker',
'query_var' => false,
'rewrite' => false
)
);
}
add_action('admin_head', 'custom_admin_style');
function custom_admin_style() {
printf('<link rel="stylesheet" type="text/css" href="%s/taxonomy.css" />',get_bloginfo('template_url'));
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment