• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2665

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Create Multiple Custom Taxonomies In Genesis

Add the following PHP code to the end of your child themes functions file and modify to suit your own requirements.

add_action( 'init', 'multiple_custom_taxonomies' );

function multiple_custom_taxonomies() {

<pre><code>register_taxonomy( 'Planes', 'post',

array(
    'label' =&gt; __( 'Planes' ),
) );

register_taxonomy( 'Trains', 'post',

array(
    'label' =&gt; __( 'Trains' ), 
) );

register_taxonomy( 'Automobiles', 'post',

array(
    'label' =&gt; __( 'Automobiles' ),
) );
</code></pre>

}

The code enables you to create multiple custom taxonomies using 1 function and unlimited terms for each taxonomy.

Uses register_taxonomy

Related tutorials

  • Template For Multiple Custom Taxonomy Type Loops
  • Rewrite Permalink Structure To Include Taxonomy Term Slugs For Your Custom Post Type

Taxonomy Terms

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems