Skip to content

Instantly share code, notes, and snippets.

@braddalton
Created September 12, 2017 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/b032119acf7b22ef1c1fc34daa76d3fd to your computer and use it in GitHub Desktop.
Save braddalton/b032119acf7b22ef1c1fc34daa76d3fd to your computer and use it in GitHub Desktop.
Multiple Custom Taxonomies https://wp.me/p1lTu0-h6P
add_action( 'init', 'multiple_custom_taxonomies' );
function multiple_custom_taxonomies() {
register_taxonomy( 'Planes', 'post',
array(
'label' => __( 'Planes' ),
) );
register_taxonomy( 'Trains', 'post',
array(
'label' => __( 'Trains' ),
) );
register_taxonomy( 'Automobiles', 'post',
array(
'label' => __( 'Automobiles' ),
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment