Skip to content

Commit

Permalink
Add Flight Tag Taxonomy
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrude committed Aug 8, 2013
1 parent b7d3bd7 commit 82aafdb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inc/postype-flight.php
Expand Up @@ -60,6 +60,16 @@ function post_type_flight() {
// Hook into the 'init' action
add_action( 'init', 'post_type_flight', 0 );

function flight_tag_init() {
// create a new taxonomy
register_taxonomy( 'tag', 'flight', array(
'label' => __( 'Tag' ),
'rewrite' => array( 'slug' => 'flight/tag' ),
)
);
}
add_action( 'init', 'flight_tag_init' );

function my_rewrite_flush() {
flush_rewrite_rules();
}
Expand Down

0 comments on commit 82aafdb

Please sign in to comment.