Hi guys,
I have a custom taxonomy field for work categories in my portfolio custom post type.
It used to work perfectly, now it stopped working!
I’ve set it up like this:
-custom taxonomy
– checkbox
– cannot be empty
– create terms – yes
– save terms – yes
– load terms – yes
– output as object
here’s how I registered my custom taxonomy in mu fucntions.php:
add_action('init', 'register_custom_taxonomies' );
function register_custom_taxonomies() {
//Werk Categorien
$labels = array(
'name' => _x( 'Werk Categorien', 'taxonomy general name' ),
'singular_name' => _x( 'Werk Categorie', 'taxonomy singular name' ),
'search_items' => __( 'Zoek Werk Categorie' ),
'all_items' => __( 'Alle Werk Categorien' ),
'edit_item' => __( 'Bewerk Werk Categorie' ),
'update_item' => __( 'Update Werk Categorie' ),
'add_new_item' => __( 'Voeg nieuw Werk Categorie toe' ),
'new_item_name' => __( 'Naam Nieuwe Werk Categorie' ),
'menu_name' => __( 'Werk Categorien' ),
);
$args = array(
'hierarchical' => false,
'labels' => $labels,
'show_ui' => true,
'show_admin_column' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'werk-categorie' ),
);
register_taxonomy( 'werk-categorie', array( 'portfolio' ), $args );
}
whats up with this? any clues? I run all the latest versions