Title: Large CSV Import Handler
Author: firimar
Published: <strong>6 augusts, 2016</strong>
Last modified: 5 augusts, 2016

---

Meklēt spraudņus

Šī spraudnis **nav atjaunināts vairāk kā divus gadus**. Varbūt, tas vairs netiek
uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress
versijām.

![](https://ps.w.org/large-csv-import-handler/assets/icon-256x256.png?rev=1469323)

# Large CSV Import Handler

 Autors [firimar](https://profiles.wordpress.org/firimar/)

[Lejupielādēt](https://downloads.wordpress.org/plugin/large-csv-import-handler.0.9.zip)

 * [Sīkāka informācija](https://lv.wordpress.org/plugins/large-csv-import-handler/#description)
 * [Atsauksmes](https://lv.wordpress.org/plugins/large-csv-import-handler/#reviews)
 *  [Uzstādīšana](https://lv.wordpress.org/plugins/large-csv-import-handler/#installation)
 * [Attīstība](https://lv.wordpress.org/plugins/large-csv-import-handler/#developers)

 [Atbalsts](https://wordpress.org/support/plugin/large-csv-import-handler/)

## Apraksts

This simple plugin allows you to import any type of data from large CSV files into
your wordpress installation.

Plugin reads CSV file and performs import of its records one by one through AJAX
requests, so there are no server timeout issues.

You only need to provide PHP function to perform import of CSV field values into
post or taxonomy term or whatever you need.

Usage example:

For example, assume we want to import posts from such CSV file:
 title,text,brand,
image “Check this”,”Samsung content”,Samsung,”https://upload.wikimedia.org/wikipedia/
commons/thumb/2/24/Samsung_Logo.svg/2000px-Samsung_Logo.svg.png” “Some news”,”NewsHere
are some news”,Philips,”http://www.underconsideration.com/brandnew/archives/philips_2013_logo_detail.
png”

Here we have post title, post content, custom field Brand and thumbnail image.

We can use this code in theme’s functions.php file to implement import function:

    ```
    add_action('lcih_import_csv_row', 'lcih_import_csv_row');
    function lcih_import_csv_row($row)
    {
     $post_data = array(
         'post_type' => 'post',
         'post_status' => 'publish',
         'post_title' => $row['title'],
         'post_content' => $row['text']
     );
     $post_id = wp_insert_post($post_data);
     if (!$post_id)
     {
         echo "Error inserting post.";
         return;
     }

     update_post_meta($post_id, 'brand', $row['brand']);

     if ($row['image'])
         LargeCSVImportHandlerPlugin::download_post_thumbnail($post_id, $row['image']);

     echo "Created post ".$post_id;
    }
    ```

After that we can go to plugin admin page, select CSV file to upload and click “
Start import” button. Import process will begin.

## Ekrānuzņēmumi

 * [[
 * Admin import page
 * [[
 * Admin settings page

## Uzstādīšana

Use the automatic installer from within the WordPress admin, or:

 1. Download the .zip file by clicking on the Download button on the right
 2. Unzip the file
 3. Upload the files to your plugins directory
 4. Go to the Plugins page from within the WordPress administration
 5. Click Activate for Large CSV Import Handler
 6. After activation a new Large CSV Import Handler menu item will appear in admin 
    area.
 7. Visit the Settings page to adjust values as you need.

You can now start using the plugin.

## Atsauksmes

![](https://secure.gravatar.com/avatar/0725b64a69792cceb9593700d7ff81cbda7162a09bfd1d81a15aa9eb399202f2?
s=60&d=retro&r=g)

### 󠀁[Awesome Work, Great Plugin](https://wordpress.org/support/topic/awesome-work-great-plugin/)󠁿

 [Rameez Iqbal](https://profiles.wordpress.org/rameez_iqbal/) 11 maijs, 2017 2 atbildes

After trying almost all major CSV plugins, this is the one that works perfectly 
for large files. I have a file of 35MB with 83000 posts and was unable to import
them but this plugin did it with ease. No server time issues, simple to use. Recommended!

 [ Lasīt 1 atsauksmes ](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/)

## Autori un izstrādātāji

“Large CSV Import Handler” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši
šādi cilvēki.

Līdzdalībnieki

 *   [ firimar ](https://profiles.wordpress.org/firimar/)

[Tulkot “Large CSV Import Handler&#8221 savā valodā.](https://translate.wordpress.org/projects/wp-plugins/large-csv-import-handler)

### Vai jūs interesē attīstība?

[Pārlūkojiet kodu](https://plugins.trac.wordpress.org/browser/large-csv-import-handler/),
apmeklējiet[ SVN krātuvi ](https://plugins.svn.wordpress.org/large-csv-import-handler/)
vai abonējiet[ attīstības žurnālu](https://plugins.trac.wordpress.org/log/large-csv-import-handler/),
ko izveidojis [RSS](https://plugins.trac.wordpress.org/log/large-csv-import-handler/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versija **0.9**
 *  Pēdējo reizi atjaunots: **pirms 10 gadiem**
 *  Aktīvās instalācijas: **10+**
 *  WordPress versija ** 3.0.1 vai jaunāka **
 *  Pārbaudīts līdz: **4.6.30**
 *  Valoda
 * [English (US)](https://wordpress.org/plugins/large-csv-import-handler/)
 * Birkas:
 * [csv](https://lv.wordpress.org/plugins/tags/csv/)[data](https://lv.wordpress.org/plugins/tags/data/)
   [import](https://lv.wordpress.org/plugins/tags/import/)[posts](https://lv.wordpress.org/plugins/tags/posts/)
 *  [Papildu skats](https://lv.wordpress.org/plugins/large-csv-import-handler/advanced/)

## Vērtējumi

 5 no 5 zvaigznēm.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/#new-post)

[Skatīt visas atsauksmes](https://wordpress.org/support/plugin/large-csv-import-handler/reviews/)

## Līdzdalībnieki

 *   [ firimar ](https://profiles.wordpress.org/firimar/)

## Atbalsts

Jums ir kaut kas ko teikt? Vajadzīga palīdzība?

 [Skatīt atbalsta forumu](https://wordpress.org/support/plugin/large-csv-import-handler/)

## Ziedojiet

Vai vēlaties atbalstīt šī spraudņa pilnveidošanu?

 [ Ziedojiet šim spraudnim ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=65AE4A3BTR6FE)