Site icon Hip-Hop Website Design and Development

taxonomy tags..it is not working

add_action( 'init', 'create_topics_nonhierarchical_taxonomy', 0 );

function create_topics_nonhierarchical_taxonomy() {

    // Labels part for the GUI

      $labels = array(
        'name' => _x( 'Blog Tags', 'taxonomy general name' ),
        'singular_name' => _x( 'Blog Tag', 'taxonomy singular name' ),
        'search_items' =>  __( 'Search blog_tags' ),
        'popular_items' => __( 'Popular  blog_tags' ),
        'all_items' => __( 'All blog_tags' ),
        'parent_item' => null,
        'parent_item_colon' => null,
        'edit_item' => __( 'Edit blog_tags' ), 
        'update_item' => __( 'Update blog_tags' ),
        'add_new_item' => __( 'Add New blog_tags' ),
        'new_item_name' => __( 'New blog_tags Name' ),
        'separate_items_with_commas' => __( 'Separate blog_tags with commas' ),
        'add_or_remove_items' => __( 'Add or remove blog_tags' ),
        'choose_from_most_used' => __( 'Choose from the most used blog_tags' ),
        'menu_name' => __( 'Blog Tags' ),
      ); 

    // Now register the non-hierarchical taxonomy like tag

      register_taxonomy('blog_tags','blog_tags',array(
        'hierarchical' => false,
        'labels' => $labels,
        'show_ui' => true,
        'show_admin_column' => true,
        'update_count_callback' => '_update_post_term_count',
        'query_var' => true,
        'rewrite' => array( 'slug' => 'blog_tags' ),
      ));
}