I added a custom taxonomy (separate categories for a custom post type) like this:
register_taxonomy(self::$slug . '_category', array(self::$slug), array(
'label' => 'Kategorien',
'labels' => array(
'name' => 'Kategorien',
'singular_name' => 'Kategorie',
'all_items' => 'Alle Kategorien',
'edit_item' => 'Kategorie bearbeiten',
'view_item' => 'Kategorie anzeigen',
'update_item' => 'Kategorie aktualisieren',
'add_new_item' => 'Neue Kategorie erstellen'
),
'hierarchical' => true,
'rewrite' => array(
'slug' => 'referenzen-kategorie'
)
));
On the homepage I am fetching the categories like this:
$categories = get_categories(array(
'type' => 'sb_reference',
'taxonomy' => 'sb_reference_category'
));
And displaying it. Now comes the catch: The admin of the site wants to influence the order of the displayed categories and his desired order is neither alphabetical nor by post count, but by his perceived relevance of the categories. So basically I have to give the taxonomy an additional field that he can write the order of the categories in (i.e. CategoryA is 0, CategoryB is 2, CategoryC is 1 etc.)
My question: How can I add an additional field to the custom taxonomy or what are my alternatives?