Title: Invalid import
Last modified: August 22, 2016

---

# Invalid import

 *  Resolved [noreff](https://wordpress.org/support/users/noreff/)
 * (@noreff)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/invalid-import/)
 * Hello and thanks for great plugin. It saved a lot of time for me.
    And sorry 
   for my english pls.
 * I have a problem with order of items in custom_taxonomy array. For exapmle in
   my csv i wrote “actors” custom taxonomy with those 3 actors”:
 * “Tom Hanks, Barkhad Abdi, Barkhad Abdirahman”
 * its importing and i see that actors are imported in “inversed” order:
 * Barkhad Abdirahman, Barkhad Abdi, Tom Hanks
 * Also:
    I know, that terms are always ordered by its name. I already resolve this
   by adding this code to functions.php of my theme:
 *     ```
       ///////////////////////////Order custom taxonomies //////////////////////////
       function set_the_terms_in_order ( $terms, $id, $taxonomy ) {
           $terms = wp_cache_get( $id, "{$taxonomy}_relationships_sorted" );
           if ( false === $terms ) {
               $terms = wp_get_object_terms( $id, $taxonomy, array( 'orderby' => 'term_order' ) );
               wp_cache_add($id, $terms, $taxonomy . '_relationships_sorted');
           }
           return $terms;
       }
       add_filter( 'get_the_terms', 'set_the_terms_in_order' , 10, 4 );
   
       function do_the_terms_in_order () {
           global $wp_taxonomies;  //fixed missing semicolon
           // the following relates to tags, but you can add more lines like this for any taxonomy
           $wp_taxonomies['post_tag']->sort = true;
           $wp_taxonomies['post_tag']->args = array( 'orderby' => 'term_order' );
       }
       add_action( 'init', 'do_the_terms_in_order');
       ```
   
 * I’m talking about order in “edit” page.
 * [https://wordpress.org/plugins/wp-csv/](https://wordpress.org/plugins/wp-csv/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * (@cpkwebsolutions)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/invalid-import/#post-5823233)
 * Hi Noreff
 * Perhaps you could reverse the order in your spreadsheet before importing?
 * Best wishes
 * Paul

Viewing 1 replies (of 1 total)

The topic ‘Invalid import’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-csv.svg)
 * [WP CSV](https://wordpress.org/plugins/wp-csv/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-csv/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-csv/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-csv/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-csv/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-csv/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [CPK Web Solutions](https://wordpress.org/support/users/cpkwebsolutions/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/invalid-import/#post-5823233)
 * Status: resolved