Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Pages Tax

// Register Custom Taxonomy
function pages_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Pages', 'Taxonomy General Name', 'city-of-prescott-tabula-rasa' ),
		'singular_name'              => _x( 'Page', 'Taxonomy Singular Name', 'city-of-prescott-tabula-rasa' ),
		'menu_name'                  => __( 'Pages', 'city-of-prescott-tabula-rasa' ),
		'all_items'                  => __( 'All Pages', 'city-of-prescott-tabula-rasa' ),
		'parent_item'                => __( 'Parent Page', 'city-of-prescott-tabula-rasa' ),
		'parent_item_colon'          => __( 'Parent Page:', 'city-of-prescott-tabula-rasa' ),
		'new_item_name'              => __( 'New Page Name', 'city-of-prescott-tabula-rasa' ),
		'add_new_item'               => __( 'Add New Page', 'city-of-prescott-tabula-rasa' ),
		'edit_item'                  => __( 'Edit Page', 'city-of-prescott-tabula-rasa' ),
		'update_item'                => __( 'Update Page', 'city-of-prescott-tabula-rasa' ),
		'view_item'                  => __( 'View Page', 'city-of-prescott-tabula-rasa' ),
		'separate_items_with_commas' => __( 'Separate pages with commas', 'city-of-prescott-tabula-rasa' ),
		'add_or_remove_items'        => __( 'Add or remove pages', 'city-of-prescott-tabula-rasa' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'city-of-prescott-tabula-rasa' ),
		'popular_items'              => __( 'Popular Pages', 'city-of-prescott-tabula-rasa' ),
		'search_items'               => __( 'Search Pages', 'city-of-prescott-tabula-rasa' ),
		'not_found'                  => __( 'Not Found', 'city-of-prescott-tabula-rasa' ),
	);
	$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( 'pages', array( 'post', ' page', 'user' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'pages_taxonomy', 0 );