[Plugin: WP All Import] Unable to save custom taxonomies
-
I’m using the upgraded/paid version of WP All Import (tried with versions 2.19 and 2.21) and am unable to save custom taxonomies when importing to a custom post type (though everything else is working brilliantly).
Here is the code I’m using to register the taxonomies (‘types’ and ‘regions’, which are used only with the custom post type ‘members’), if that helps.
note: the following works just fine with manually added entries.
//hook into the init action and call create_book_taxonomies when it fires add_action( 'init', 'create_member_taxonomies', 0 ); //create two taxonomies, genres and writers for the post type "book" function create_member_taxonomies() { // Add new taxonomy $labels = array( 'name' => _x( 'Types', 'taxonomy general name' ), 'singular_name' => _x( 'Type', 'taxonomy singular name' ), 'search_items' => __( 'Search Types' ), 'popular_items' => __( 'Popular Types' ), 'all_items' => __( 'All Types' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Type' ), 'update_item' => __( 'Update Type' ), 'add_new_item' => __( 'Add New Type' ), 'new_item_name' => __( 'New Type Name' ), 'separate_items_with_commas' => __( 'Separate types with commas' ), 'add_or_remove_items' => __( 'Add or remove types' ), 'choose_from_most_used' => __( 'Choose from the most used types' ), 'menu_name' => __( 'Types' ), ); register_taxonomy('types','members',array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, //'rewrite' => array( 'slug' => 'type' ), )); // Add new taxonomy $labels = array( 'name' => _x( 'Regions', 'taxonomy general name' ), 'singular_name' => _x( 'Region', 'taxonomy singular name' ), 'search_items' => __( 'Search Regions' ), 'popular_items' => __( 'Popular Regions' ), 'all_items' => __( 'All Regions' ), 'parent_item' => null, 'parent_item_colon' => null, 'edit_item' => __( 'Edit Region' ), 'update_item' => __( 'Update Writer' ), 'add_new_item' => __( 'Add New Region' ), 'new_item_name' => __( 'New Region Name' ), 'separate_items_with_commas' => __( 'Separate regions with commas' ), 'add_or_remove_items' => __( 'Add or remove regions' ), 'choose_from_most_used' => __( 'Choose from the most used regions' ), 'menu_name' => __( 'Regions' ), ); register_taxonomy('regions','members',array( 'hierarchical' => true, 'labels' => $labels, 'show_ui' => true, 'update_count_callback' => '_update_post_term_count', 'query_var' => true, //'rewrite' => array( 'slug' => 'region' ), )); }
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: WP All Import] Unable to save custom taxonomies’ is closed to new replies.