• Resolved naaatasha

    (@naaatasha)


    I want to import xml file including items with p tags with ids. But the order od p tags in different items are different, so the imported values are not corresponding values from ids. For example element with id 70 is on the 10-th place, but in other item the p with id 70 is on the 12-th position. How can I import this data correctly?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @naaatasha

    It sounds like you can tackle this with an XPath query. For example, let’s say that the p tags in your XML look like this:

    <p id="80">A</p>
    <p id="70">B</p>
    <p id="60">C</p>

    If you drag in the second one it looks like this:

    {p[2]}

    To grab that based on the “id” attribute, you should change the XPath to this:

    {p[@id="70"]}

    Plugin Author WP All Import

    (@wpallimport)

    Hi @naaatasha

    I’m marking this as resolved since we haven’t heard back. Feel free to follow up here if you’re still having issues with this. Anyone else please open a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Import data from certain ids’ is closed to new replies.