WordPress.org

Ready to get started?Download WordPress

Forums

Import any XML or CSV File to WordPress
[resolved] Create a filter while importing (6 posts)

  1. syli
    Member
    Posted 1 year ago #

    Hi,

    I would like to know if it is possible to create a filter on a filter while importing.

    For example, i would like to import every article that get the node <category>my-cat1</category>

    http://wordpress.org/extend/plugins/wp-all-import/

  2. syli
    Member
    Posted 1 year ago #

    Just wanted to say that it is something that you can do

  3. majac
    Member
    Posted 11 months ago #

    Hi syli,

    Would you like to share your solution? I would like to filter xml file without importing whole file and then going back to modify xpath expression. I believe we are talking about same thing...handling very large xml files.............Thanks

  4. syli
    Member
    Posted 11 months ago #

    Hello Majac,

    I have ask the support team in order to have an answer. I must say that they are really useful and that they answer me really quickly.

    In order to create the filter I had to use xpath in the second step
    My file looks like this :
    <products>
    <product>
    <price> 19$ </price>
    <rubrori> guitare </rubrori>
    <img> img.png </img>
    </product>
    <product>
    .... a lot of things...
    </product>
    </products>

    I wanted to realise my filter on guitare for the element <rubrori> so I had to do that :

    /product[rubrori[contains(.,'GUITARE')]]

    Is that clear enough for you?

    Do not hesitate to ask should you have any question.

  5. syli
    Member
    Posted 11 months ago #

    And by the way, the topic is resolved so i check the box :)

  6. majac
    Member
    Posted 11 months ago #

    Hi syli,

    That is clear enough, Thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic