Skip to content

Instantly share code, notes, and snippets.

@aosteraas
Created July 24, 2014 00:29
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 aosteraas/14894a2840f3950cf0e7 to your computer and use it in GitHub Desktop.
Save aosteraas/14894a2840f3950cf0e7 to your computer and use it in GitHub Desktop.
<?php
function public_taxonomy() {
register_taxonomy( 'jobs', 'alljobs', //changed genre to jobs
array(
'label' => __( 'Public Jobs' ),
'rewrite' => array( 'slug' => 'public_jobs' ),
'hierarchical' => true,
)
);
}
add_action( 'init', 'public_taxonomy' );
function corp_taxonomy() {
register_taxonomy( 'corp_jobs', 'alljobs', //changed genre to corp_jobs
array(
'label' => __( 'Corporate Jobs' ),
'rewrite' => array( 'slug' => 'corp_jobs' ),
'hierarchical' => true,
)
);
}
add_action( 'init', 'corp_taxonomy' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment