Support

Account

Home Forums Backend Issues (wp-admin) Taxonomy not saving

Helping

Taxonomy not saving

  • 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

  • Hi @boriskamp1991,

    Thanks for the post.

    Some more info on the kind of errors that you are receiving would really help.

    Is the issue in the backend or when pulling values to your template?

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Taxonomy not saving’ is closed to new replies.