summaryrefslogtreecommitdiff
path: root/taxonomy.php
diff options
context:
space:
mode:
authorMax2018-10-15 23:46:42 +0200
committerMax2018-10-15 23:46:42 +0200
commit00c9709fd9763542e848f6278db8ba26af5c9886 (patch)
tree92cb1c1ee4c467118e1e5a4c7e233d3feac6efa8 /taxonomy.php
downloadfuselkoenig_de-00c9709fd9763542e848f6278db8ba26af5c9886.tar.gz
Initial commit.
Diffstat (limited to 'taxonomy.php')
-rw-r--r--taxonomy.php54
1 files changed, 54 insertions, 0 deletions
diff --git a/taxonomy.php b/taxonomy.php
new file mode 100644
index 0000000..0c65806
--- /dev/null
+++ b/taxonomy.php
@@ -0,0 +1,54 @@
+<?php
+/*
+if ( !defined("ABSPATH") ) {
+ exit;
+}
+*/
+
+function create_taxonomy_brennerei() {
+ // create a new taxonomy
+ register_taxonomy(
+ 'brennerei',
+ 'post',
+ array(
+ 'label' => __( '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 );