Title: Cannot update specific fields
Last modified: March 3, 2017

---

# Cannot update specific fields

 *  Resolved [fredsbend](https://wordpress.org/support/users/fredsbend/)
 * (@fredsbend)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-update-specific-fields/)
 * My wp_posts table has two columns that Really Simple CSV will not update. Those
   columns are called group_access and tag_list. I create the columns in the CSV,
   but the importer will not update those fields in the wp_posts table. How can 
   I get it to target these fields?
    -  This topic was modified 9 years, 2 months ago by [fredsbend](https://wordpress.org/support/users/fredsbend/).

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

 *  Thread Starter [fredsbend](https://wordpress.org/support/users/fredsbend/)
 * (@fredsbend)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-update-specific-fields/#post-8880459)
 * I’ve edited the plugin php directly with the following code. It was able to update
   those fields now:
 *     ```
       				// (string, comma separated) group access
       				$group_access = $h->get_data($this,$data,'group_access');
       				if ($group_access) {
       					$post['group_access'] = $group_access;
       				}
                         echo $group_access;
                         echo ' ';
   
       				// (string, comma separated) tag list
       				$tag_list = $h->get_data($this,$data,'tag_list');
       				if ($tag_list) {
       					$post['tag_list'] = $tag_list;
       				}
                         echo $tag_list;
   
       global $wpdb;
       $dbresult = $wpdb->update($wpdb->posts, ['group_access' => $group_access, 'tag_list' => $tag_list], ['ID' => $post_id]);
       if (false === $dbresult) {
           echo 'An error occurred while updating...';
           $errors = $post_id->get_error_messages();
       }
       ```
   
 * It does not edit the fields if creating a new entry. I’m working on it. In the
   meantime, I just import twice, the first to create the rows, the second to make
   the updates to these specific fields.
 * It would be great if the plugin author would add the functionality for the importer
   to account for user specific fields, instead of just the default WP fields.
    -  This reply was modified 9 years, 2 months ago by [fredsbend](https://wordpress.org/support/users/fredsbend/).
    -  This reply was modified 9 years, 2 months ago by [fredsbend](https://wordpress.org/support/users/fredsbend/).
 *  Plugin Author [Takuro Hishikawa](https://wordpress.org/support/users/hissy/)
 * (@hissy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-update-specific-fields/#post-8882343)
 * I recommend you do not change structure of database of WordPress Core, using 
   custom field is always safety way.
    -  This reply was modified 9 years, 2 months ago by [Takuro Hishikawa](https://wordpress.org/support/users/hissy/).

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

The topic ‘Cannot update specific fields’ is closed to new replies.

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

 * 2 replies
 * 2 participants
 * Last reply from: [Takuro Hishikawa](https://wordpress.org/support/users/hissy/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/cannot-update-specific-fields/#post-8882343)
 * Status: resolved