Created
July 24, 2014 00:29
-
-
Save aosteraas/14894a2840f3950cf0e7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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