Title: XML Import
Author: dirlikdesigns
Published: <strong>7 ມັງກອນ 2016</strong>
Last modified: 1 ມີນາ 2016

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/xml-import.svg)

# XML Import

 ໂດຍ [dirlikdesigns](https://profiles.wordpress.org/dirlikdesigns/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/xml-import.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/xml-import/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/xml-import/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/xml-import/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/xml-import/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/xml-import/)

## ຄຳອະທິບາຍ

Easy to use XML feed importer with the ability to map feed items onto (custom) posts
and their meta fields.

#### Usage Notes

 * The feeds are managed (added / edited / deleted) like normal posts.
 * To import a new feed, you must first save the post with at least the title and
   URL fields filled in.
    - This is because the importer downloads a copy of the feed and works with that
      copy.
    - If you try to import before the feed is saved, the importer has no copy to
      work with yet.

#### Form explanation

 * Import
    - It’s the first field in the form, but the last step.
    - There is no cancel button, so once you click the ‘import’ button, you can 
      only refresh (or move away from) the page to cancel the import.
    - The import is done 10 feed items at a time, the progress is shown under the
      import button.
    - The import sends ajax requests until the import is done at which point the
      spinner stops spinning and the progress message shows ‘n posts imported’
 * URL
    - the feed url
 * Required Fields (optional)
    - comma separated list of (custom) post fields
    - if a field in this list has no mapping, than the import will fail
    - if the mapping of a field in this list turns out to be empty, than the corresponding
      feed item is skipped.
 * Unique Fields (optional)
    - comma separated list of (custom) post fields
    - unique fields are not implicitly required
    - skips a feed item if a field with this value already exists.
 * CSV delimiter (optional)
    - if this field is empty, the plugin assumes the URL links to a XML file
    - if this field is non-empty, the plugin assumes the URL links to a CSV file,
      with the given value as the delimiter
    - a CSV file will be converted to XML, so the further usage of the plugin remains
      the same.
 * Select root
    - select the path to the items that should be mapped
    - i.e. you want to import products into your woocommerce installation
    - xml : <products> <product></product> … <product></product> </products>
    - then the root should be /products/product
    - you can use the plus and minus buttons to go a level up or down
    - the select boxes show the possible paths for a given level
    - Click the ‘Select’ button to confirm the root
    - The XML area should fill up with the first item that matches root.
 * Select post field
    - the first select box shows the registered post types and Taxonomies.
    - the second select box shows the corresponding fields. (Even columns like ID
      which you probably shouldn’t set manually)
    - many of the fields are always the same and correspond to the columns in the`
      wp_posts` table in the database, but the meta fields can differ.
    - the plugin needs at least one existing object of the selected post type to
      find these meta fields.
    - the meta fields are based on the first post of the selected post type it finds.
 * Map
    - this shows the current mapping
    - if you have selected a mapping, it can be removed with the ‘x’ at the right
      hand side
    - if you are satisfied with the mappings, click ‘Save map’
 * XML
    - once you have selected a root, the first xml item at this path will be shown
      here.
    - click anywhere on the XML to get the corresponding paths
    - the selected path will appear above the colourful XML
    - if the path contains attributes, they will appear as selectboxes
    - if the desired path depends on a sibling in the XML, follow these instruction:
    - some XML looks like this ..<parent> <key>name</key><value>Dirlik<value></parent
      > …
    - in this case, click on the value tag in the XML and the corresponding path
      appears: ‘Assign path: …/parent/value’
    - now click on ‘parent’ in the path and 2 new selectboxes appear and an ‘Add
      to attribute list’ button
    - in our example you would select ‘key’ in the first selectbox and ‘name’ in
      the second
    - click ‘Add to attribute list’ and the path changes accordingly
    - once you see the path you want, click the ‘Add to map’ button.
    - The Map will now reflect that the path you chose is mapped om the selected
      post field.

### WARNING

This plugin is new and requires more testing. If you decide to use the plugin, please
make a backup of your database first.
 Once you click the `import` link, there is
no cancel button, you can refresh (or move away from) the page to cancel the import.
On your first go, try a smaller feed to make sure you mapped it right.

### TODO

 * add row actions
 * define type of imported value (now images only work with _thumbnail_id meta value)

## ການຕິດຕັ້ງ

 1. Upload the plugin files to the `/wp-content/plugins/xml-import` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Make sure the tmp folder is writable
 3. Activate the plugin through the ‘Plugins’ screen in WordPress
 4. A new menu item should appear named ‘Feeds’

## ຄຳຖາມທີ່ພົບເລື້ອຍ

 * feel free to ask

## ການຣີວິວ

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

### 󠀁[Дрянь](https://wordpress.org/support/topic/%d0%b4%d1%80%d1%8f%d0%bd%d1%8c/)󠁿

 [ednikbod](https://profiles.wordpress.org/ednikbod/) 1 ພຶດສະພາ 2018

Полное дерьмо не работающее.

 [ ອ່ານການຣີວິວທັງໝົດ 1 ລາຍການ ](https://wordpress.org/support/plugin/xml-import/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“XML Import” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດ
ທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “XML Import” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/xml-import)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/xml-import/), ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/xml-import/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/xml-import/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/xml-import/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.0.4

 * fixed bugs KVSelect in javascript
 * made javascript a little prettier
 * fixed bug so images that end with .jpg are not stored as .jpg.jpeg

#### 1.0.3

 * prepared plugin for internationalization
 * added dutch translation

#### 1.0.2

 * made the scripts and styles only show up on our edit pages
 * removed textdomain variable
 * made key value selection clearer
 * smaller bugfixes

#### 1.0.1

 * added CSV functionality
 * added link to re-download feed
 * added some explanation to this readme.txt file

#### 1.0

 * this is the first version

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.0.4**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **10 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **20+**
 *  ເວີຊັນ WordPress ** 4.0 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.4.34**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/xml-import/)
 * ແທັກ
 * [custom post](https://lo.wordpress.org/plugins/tags/custom-post/)[import](https://lo.wordpress.org/plugins/tags/import/)
   [meta fields](https://lo.wordpress.org/plugins/tags/meta-fields/)[xml](https://lo.wordpress.org/plugins/tags/xml/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/xml-import/advanced/)

## ການໃຫ້ຄະແນນ

 1 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/xml-import/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/xml-import/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/xml-import/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/xml-import/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/xml-import/reviews/?filter=1)

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

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/xml-import/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/xml-import/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KAUYDU54G6Z5S)