From 00c9709fd9763542e848f6278db8ba26af5c9886 Mon Sep 17 00:00:00 2001 From: Max Date: Mon, 15 Oct 2018 23:46:42 +0200 Subject: Initial commit. --- taxonomy.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 taxonomy.php (limited to 'taxonomy.php') diff --git a/taxonomy.php b/taxonomy.php new file mode 100644 index 0000000..0c65806 --- /dev/null +++ b/taxonomy.php @@ -0,0 +1,54 @@ + __( 'Hersteller' ), + 'hierarchical' => false, + 'rewrite' => array( 'slug' => 'brennerei' ), +/* + 'capabilities' => array( + 'assign_terms' => 'edit_guides', + 'edit_terms' => 'publish_guides' + ) +*/ + ) + ); +} +add_action( 'init', 'create_taxonomy_brennerei', 0 ); + +function create_taxonomy_whiskyregion() { + // create a new taxonomy + register_taxonomy( + 'region', + 'post', + array( + 'label' => __( 'Whiskyregion' ), + 'hierarchical' => false, + 'rewrite' => array( 'slug' => 'region' ), + ) + ); +} +add_action( 'init', 'create_taxonomy_whiskyregion', 0 ); + +function create_taxonomy_sponsor() { + // create a new taxonomy + register_taxonomy( + 'sponsor', + 'post', + array( + 'label' => __( 'Sponsored By' ), + 'hierarchical' => false, + 'rewrite' => array( 'slug' => 'sponsored' ), + ) + ); +} +add_action( 'init', 'create_taxonomy_sponsor', 0 ); -- cgit v1.2.3