Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

(MBS) Mortgage Categories

// Register Custom Taxonomy
function _mbs_register_taxonomy_mortgage_type() {

	$labels = array(
		'name'                       => _x( 'Mortgage Types', 'Taxonomy General Name', 'mbs' ),
		'singular_name'              => _x( 'Mortgage Type', 'Taxonomy Singular Name', 'mbs' ),
		'menu_name'                  => __( 'Mortgage Types', 'mbs' ),
		'all_items'                  => __( 'All Mortgage Types', 'mbs' ),
		'parent_item'                => __( 'Parent Mortgage Type', 'mbs' ),
		'parent_item_colon'          => __( 'Parent Mortgage Type:', 'mbs' ),
		'new_item_name'              => __( 'New Mortgage Type Name', 'mbs' ),
		'add_new_item'               => __( 'Add New Mortgage Type', 'mbs' ),
		'edit_item'                  => __( 'Edit Mortgage Type', 'mbs' ),
		'update_item'                => __( 'Update Mortgage Type', 'mbs' ),
		'view_item'                  => __( 'View Mortgage Type', 'mbs' ),
		'separate_items_with_commas' => __( 'Separate Mortgage Types with commas', 'mbs' ),
		'add_or_remove_items'        => __( 'Add or remove Mortgage Types', 'mbs' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'mbs' ),
		'popular_items'              => __( 'Popular Mortgage Types', 'mbs' ),
		'search_items'               => __( 'Search Mortgage Types', 'mbs' ),
		'not_found'                  => __( 'Not Found', 'mbs' ),
		'no_terms'                   => __( 'No items', 'mbs' ),
		'items_list'                 => __( 'Mortgage Types list', 'mbs' ),
		'items_list_navigation'      => __( 'Mortgage Types list navigation', 'mbs' ),
	);
	$rewrite = array(
		'slug'                       => 'mortgages',
		'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'              => false,
		'rewrite'                    => $rewrite,
	);
	register_taxonomy( 'mortgage_type', array( 'mortgage_product' ), $args );

}
add_action( 'init', '_mbs_register_taxonomy_mortgage_type', 0 );