Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'init', 'create_book_tax' );
- function create_book_tax() {
- register_taxonomy(
- 'genre',
- 'page',
- array(
- 'label' => __( 'Genre' ),
- 'rewrite' => array( 'slug' => 'genre' ),
- 'hierarchical' => true,
- )
- );
- }
- ?>
Add Comment
Please, Sign In to add comment