Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make webcomic_character taxonomy non-hierarchical.

  • Loading branch information...
commit 5f80999097dc6abb27dd19e47b0fffd34b77c53f 1 parent 72f8a30
Michael Sisk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  webcomic.php
View
2  webcomic.php
@@ -2711,7 +2711,7 @@ public function hook_init() {
register_post_type( 'webcomic_post', array( 'labels' => array( 'name' => __( 'Webcomics', 'webcomic' ), 'singular_name' => __( 'Webcomic', 'webcomic' ), 'add_new_item' => __( 'Add New Webcomic', 'webcomic' ), 'edit_item' => __( 'Edit Webcomic', 'webcomic' ), 'new_item' => __( 'New Webcomic', 'webcomic' ), 'view_item' => __( 'View Webcomic', 'webcomic' ), 'search_items' => __( 'Search Webcomics', 'webcomic' ), 'not_found' => __( 'No webcomics found', 'webcomic' ), 'not_found_in_trash' => __( 'No webcomics found in trash', 'webcomic' ) ), 'public' => true, 'show_ui' => true, 'show_in_menu' => false, 'rewrite' => $rewrite[ 'webcomic' ], 'query_var' => 'webcomic_post', 'taxonomies' => array( 'category', 'post_tag' ), 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions' ) ) );
register_taxonomy( 'webcomic_collection', array( 'webcomic_post' ), array( 'labels' => array( 'name' => __( 'Collections', 'webcomic' ), 'singular_name' => __( 'Collection', 'webcomic' ), 'search_items' => __( 'Search Collections', 'webcomic' ), 'popular_items' => __( 'Popular Collections', 'webcomic' ), 'all_items' => __( 'All Collections', 'webcomic' ), 'parent_item' => __( 'Parent Collection', 'webcomic' ), 'parent_item_colon' => __( 'Parent Collection:', 'webcomic' ), 'edit_item' => __( 'Edit Collection', 'webcomic' ), 'update_item' => __( 'Update Collection', 'webcomic' ), 'add_new_item' => __( 'Add New Collection', 'webcomic' ), 'new_item_name' => __( 'New Collection Name', 'webcomic' ) ), 'hierarchical' => true, 'public' => true, 'show_ui' => false, 'rewrite' => $rewrite[ 'collection' ], 'query_var' => 'webcomic_collection', 'update_count_callback' => '_update_post_term_count' ) );
register_taxonomy( 'webcomic_storyline', array( 'webcomic_post' ), array( 'labels' => array( 'name' => __( 'Storylines', 'webcomic' ), 'singular_name' => __( 'Storyline', 'webcomic' ), 'search_items' => __( 'Search Storylines', 'webcomic' ), 'popular_items' => __( 'Popular Storylines', 'webcomic' ), 'all_items' => __( 'Al Storylines', 'webcomic' ), 'parent_item' => __( 'Parent Storyline', 'webcomic' ), 'parent_item_colon' => __( 'Parent Storyline:', 'webcomic' ), 'edit_item' => __( 'Edit Storyline', 'webcomic' ), 'update_item' => __( 'Update Storyline', 'webcomic' ), 'add_new_item' => __( 'Add New Storyline', 'webcomic' ), 'new_item_name' => __( 'New Storyline Name', 'webcomic' ) ), 'hierarchical' => true, 'public' => true, 'show_ui' => false, 'rewrite' => $rewrite[ 'storyline' ], 'query_var' => 'webcomic_storyline', 'update_count_callback' => '_update_post_term_count' ) );
- register_taxonomy( 'webcomic_character', array( 'webcomic_post' ), array( 'labels' => array( 'name' => __( 'Characters', 'webcomic' ), 'singular_name' => __( 'Character', 'webcomic' ), 'search_items' => __( 'Search Characters', 'webcomic' ), 'popular_items' => __( 'Popular Characters', 'webcomic' ), 'all_items' => __( 'All Characters', 'webcomic' ), 'parent_item' => __( 'Parent Character', 'webcomic' ), 'parent_item_colon' => __( 'Parent Character:', 'webcomic' ), 'edit_item' => __( 'Edit Character', 'webcomic' ), 'update_item' => __( 'Update Character', 'webcomic' ), 'add_new_item' => __( 'Add New Character', 'webcomic' ), 'new_item_name' => __( 'New Character Name', 'webcomic' ) ), 'hierarchical' => true, 'public' => true, 'show_ui' => false, 'rewrite' => $rewrite[ 'character' ], 'query_var' => 'webcomic_character', 'update_count_callback' => '_update_post_term_count' ) );
+ register_taxonomy( 'webcomic_character', array( 'webcomic_post' ), array( 'labels' => array( 'name' => __( 'Characters', 'webcomic' ), 'singular_name' => __( 'Character', 'webcomic' ), 'search_items' => __( 'Search Characters', 'webcomic' ), 'popular_items' => __( 'Popular Characters', 'webcomic' ), 'all_items' => __( 'All Characters', 'webcomic' ), 'parent_item' => __( 'Parent Character', 'webcomic' ), 'parent_item_colon' => __( 'Parent Character:', 'webcomic' ), 'edit_item' => __( 'Edit Character', 'webcomic' ), 'update_item' => __( 'Update Character', 'webcomic' ), 'add_new_item' => __( 'Add New Character', 'webcomic' ), 'new_item_name' => __( 'New Character Name', 'webcomic' ) ), 'hierarchical' => false, 'public' => true, 'show_ui' => false, 'rewrite' => $rewrite[ 'character' ], 'query_var' => 'webcomic_character', 'update_count_callback' => '_update_post_term_count' ) );
if ( get_option( 'webcomic_version' ) )
register_taxonomy( 'chapter', array( 'post', 'webcomic_post' ), array( 'label' => __( 'Chapter', 'webcomic' ), 'hierarchical' => true, 'public' => true, 'show_ui' => false, 'update_count_callback' => '_update_post_term_count' ) );
Please sign in to comment.
Something went wrong with that request. Please try again.