PP Properties
PP Properties custom taxonomy
// Register Custom Taxonomy function pp_property_tax() { $labels = array( 'name' => _x( 'Properties', 'Taxonomy General Name', 'pp_properties' ), 'singular_name' => _x( 'Property', 'Taxonomy Singular Name', 'pp_properties' ), 'menu_name' => __( 'Properties', 'pp_properties' ), 'all_items' => __( 'All Properties', 'pp_properties' ), 'parent_item' => __( 'Parent Property', 'pp_properties' ), 'parent_item_colon' => __( 'Parent Property:', 'pp_properties' ), 'new_item_name' => __( 'New Property Name', 'pp_properties' ), 'add_new_item' => __( 'Add New Property', 'pp_properties' ), 'edit_item' => __( 'Edit Property', 'pp_properties' ), 'update_item' => __( 'Update Property', 'pp_properties' ), 'view_item' => __( 'View Property', 'pp_properties' ), 'separate_items_with_commas' => __( 'Separate properties with commas', 'pp_properties' ), 'add_or_remove_items' => __( 'Add or remove properties', 'pp_properties' ), 'choose_from_most_used' => __( 'Choose from the most used', 'pp_properties' ), 'popular_items' => __( 'Popular Properties', 'pp_properties' ), 'search_items' => __( 'Search Properties', 'pp_properties' ), 'not_found' => __( 'Not Found', 'pp_properties' ), 'no_terms' => __( 'No properties', 'pp_properties' ), 'items_list' => __( 'Properties list', 'pp_properties' ), 'items_list_navigation' => __( 'Properties list navigation', 'pp_properties' ), ); $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( 'property', array( 'pp_unit' ), $args ); } add_action( 'init', 'pp_property_tax', 0 );