-
Notifications
You must be signed in to change notification settings - Fork 1
Adding Custom Taxonomies
Eric Debelak edited this page Jul 5, 2017
·
1 revision
In custom-taxonomies/index.php
you can add/modify custom taxonomies.
There is an $custom_taxonomies
array.
$custom_taxonomies = [
[
'slug' => 'example-taxonomy',
'single' => 'Example Taxonomy',
'plural' => 'Example Taxonomies',
'post-types' => ['example']
]
];
You can add any number of custom taxonomies to that array. Adding another custom taxonomy would look like this:
$custom_taxonomies = [
[
'slug' => 'example-taxonomy',
'single' => 'Example Taxonomy',
'plural' => 'Example Taxonomies',
'post-types' => ['example']
],
[
'slug' => 'something',
'single' => 'Something',
'plural' => 'Somethings',
'post-types' => ['something']
]
];