Title: Import empty rows
Last modified: August 22, 2016

---

# Import empty rows

 *  [Herwin Lesmana](https://wordpress.org/support/users/herwinlesmana/)
 * (@herwinlesmana)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/import-empty-rows/)
 * Hello,
 * I often import csv file from xls (save as csv). When I open the csv with notepad,
   there are empty rows at the bottom. Then when I import the csv, I will get that
   empty rows also imported.
 * I suggest adding this validation
 *     ```
       if($show['Artist'] == "" && $show['Venue'] == "")
       continue;
       ```
   
 * after `foreach($csv->data as $key => $show) {` in gigpress_import() function 
   to avoid empty rows imported.
 * [https://wordpress.org/plugins/gigpress/](https://wordpress.org/plugins/gigpress/)

The topic ‘Import empty rows’ is closed to new replies.

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

## Tags

 * [csv](https://wordpress.org/support/topic-tag/csv/)
 * [Import](https://wordpress.org/support/topic-tag/import/)

 * 0 replies
 * 1 participant
 * Last reply from: [Herwin Lesmana](https://wordpress.org/support/users/herwinlesmana/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/import-empty-rows/)
 * Status: not resolved