Listings Spec
// Register Custom Taxonomy
function list_tax() {
$labels = array(
'name' => _x( 'Property Specs', 'Taxonomy General Name', 'dna' ),
'singular_name' => _x( 'Property Spec', 'Taxonomy Singular Name', 'dna' ),
'menu_name' => __( 'Propery Spec', 'dna' ),
'all_items' => __( 'All Propery Specs', 'dna' ),
'parent_item' => __( 'Parent Propery Spec', 'dna' ),
'parent_item_colon' => __( 'Parent Propery Spec:', 'dna' ),
'new_item_name' => __( 'New Propery Spec', 'dna' ),
'add_new_item' => __( 'Add New Propery Spec', 'dna' ),
'edit_item' => __( 'Edit Propery Spec', 'dna' ),
'update_item' => __( 'Update Propery Spec', 'dna' ),
'separate_items_with_commas' => __( 'Separate Propery Specs with commas', 'dna' ),
'search_items' => __( 'Search Propery Specs', 'dna' ),
'add_or_remove_items' => __( 'Add or remove Propery Specs', 'dna' ),
'choose_from_most_used' => __( 'Choose from the most used Propery Specs', 'dna' ),
'not_found' => __( 'Not Found', 'dna' ),
);
$rewrite = array(
'slug' => 'spec',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'rewrite' => $rewrite,
);
register_taxonomy( 'list_tax', array( 'listings' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'list_tax', 0 );