Title: [Plugin: WP Export] Not updating &#8211; solution
Last modified: August 20, 2016

---

# [Plugin: WP Export] Not updating – solution

 *  [Compute](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-export-not-updating-solution/)
 * Heya. First of all thanks for developing this plugin. It’s just what I’ve been
   looking for!
 * It just seems like the records are not getting updated as they should (if there
   is an ID they should only be updated not created again). The reason to that is
   first setting $my_post[‘ID’] to the correct ID but after setting it to ” (to 
   make sure new posts are made).
 * This can be resolved by replacing:
    **bulk_upload.php, line 188**
 *     ```
       $row_update_counter++;
       $my_post['ID'] = '';
       $last_postid = @wp_insert_post($my_post);
       ```
   
 * With:
 *     ```
       if($my_post['ID']) {
         $row_update_counter++;
         @wp_insert_post($my_post);
       }
       else {
         $my_post['ID'] = '';
         $row_insert_counter = 0;
         $last_postid = @wp_insert_post($my_post);
       }
       ```
   
 * Note that they only **UPDATE** if you have the ID in your CSV file means that
   you have to export everytime you make a new post.
 * This has been tested in 3.2.1.
    Would others like to test it out and share the
   result? Please also share version and other info 🙂 Thanks
 * [http://wordpress.org/extend/plugins/wp-export-all-post-information-excel-format/](http://wordpress.org/extend/plugins/wp-export-all-post-information-excel-format/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Compute](https://wordpress.org/support/users/compute/)
 * (@compute)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-export-not-updating-solution/#post-2451995)
 * Also found a way to export/insert posts by it’s post type.
 * I’d love some that would like to test it out (and that the author will contact
   me)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Export] Not updating – solution’ is closed to new replies.

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

 * 1 reply
 * 1 participant
 * Last reply from: [Compute](https://wordpress.org/support/users/compute/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-export-not-updating-solution/#post-2451995)
 * Status: not resolved