FAQ Types
// Register Custom Taxonomy
function faqtype_taxonomy() {
$labels = array(
'name' => _x( 'FAQ Types', 'Taxonomy General Name', 'now' ),
'singular_name' => _x( 'FAQ Type', 'Taxonomy Singular Name', 'now' ),
'menu_name' => __( 'FAQ Type', 'now' ),
'all_items' => __( 'All FAQ Types', 'now' ),
'parent_item' => __( 'Parent FAQ Type', 'now' ),
'parent_item_colon' => __( 'Parent FAQ Type:', 'now' ),
'new_item_name' => __( 'New FAQ Type Name', 'now' ),
'add_new_item' => __( 'Add New FAQ Type', 'now' ),
'edit_item' => __( 'Edit FAQ Type', 'now' ),
'update_item' => __( 'Update FAQ Type', 'now' ),
'view_item' => __( 'View FAQ Type', 'now' ),
'separate_items_with_commas' => __( 'Separate FAQ Types with commas', 'now' ),
'add_or_remove_items' => __( 'Add or remove FAQ Types', 'now' ),
'choose_from_most_used' => __( 'Choose from the most used', 'now' ),
'popular_items' => __( 'Popular FAQ Types', 'now' ),
'search_items' => __( 'Search FAQ Types', 'now' ),
'not_found' => __( 'Not Found', 'now' ),
'no_terms' => __( 'No FAQ Types', 'now' ),
'items_list' => __( 'FAQ Types list', 'now' ),
'items_list_navigation' => __( 'FAQ Types list navigation', 'now' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
);
register_taxonomy( 'faqtype', array( 'faq' ), $args );
}
add_action( 'init', 'faqtype_taxonomy', 0 );