Last active
August 29, 2015 14:07
-
-
Save todiadiyatmo/edcc7318c5dad68a7aaa to your computer and use it in GitHub Desktop.
Skill Taxonomy in WordPress
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 | |
/* | |
* Register Skill Taxonomy | |
*/ | |
function create_skill_taxonomy() { | |
register_taxonomy( | |
'skills', // Taxonomy Name | |
array('job','resume'), // Post Type | |
array( | |
'label' => __( 'Skill' ), | |
'rewrite' => array( 'slug' => 'skill' ), | |
'hierarchical' => true, | |
) | |
); | |
} | |
add_action( 'init', 'create_skill_taxonomy' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment