D
D
Denis Lipatov2016-07-20 18:58:13
XML
Denis Lipatov, 2016-07-20 18:58:13

How to import posts from non-standard WP XML into WordPress?

There is an xml file with the following entries:

<?xml version="1.0" encoding="UTF-8"?>
<report>
  <report_name>movies_foreign</report_name>
  <generated_at>146901...</generated_at>
  <total_count>14930</total_count>
  <movies>
    <movie>
      <title_ru>007: Координаты «Скайфолл»</title_ru>
      <title_en>Skyfall</title_en>
      <kinopoisk_id>408871</kinopoisk_id>
      <token>43122d7df95d203cdc92</token>
      <type>movie</type>
      <camrip>false</camrip>
      <iframe_url>http://site.ru/video/43122d7df95d203cdc92/iframe</iframe_url>
      <translator>Дубляж</translator>
      <translator_id>21</translator_id>
      <added_at>2016-02-28 04:45:38</added_at>
      <category/>
    </movie>

how to import this data into Wordpress, additional fields with the same id are created (kinopoisk_id, etc.), the standard importer fails...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Игорь Воротнёв, 2016-07-20
@HeadOnFire

Попробуйте https://wordpress.org/plugins/wp-all-import/
Стандартный импортер требует специфический формат XML, который сильно отличается от вашего.

Максим Кудрявцев, 2016-07-20
@kumaxim

Вариант написать(сам/нанять кого-либо) конвертер из Вашего формата в формат Wordpress'а Вы не рассматривайте?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question