• Resolved kremenyk

    (@kremenyk)


    Hi. I made an import as you wrote in the example

    :<relation from=”32″ to=”34″ both=”true”/>

    Question?
    And how to remove the link between posts? I tried writing like this:<relation from=”32″ to=”34″ both=”remove”/>

    But it doesn’t remove anything. I didn’t import the 100 links correctly. And I think you at any rate have code how to delete through import all post links.

    Because go into each post. And there’s 100 posts. It’s just physical. It’s hard, complicated and not realistic

    Question 2.
    What happens if I import one and the same Xml file 2 times. The database will be overwritten. And nothing bad will happen? I just wanted to put a new id in the same file every day. And then use that file again. And I think the plugin will skip the id of posts that have already been imported. I’m just worried that the database will not be filled with garbage. So that it doesn’t have duplicates. It does not record information that has already been recorded.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Brecht

    (@brechtvds)

    Hi there,

    I just answered through our support system as well, but I’ll copy that answer here for others to read:

    1) I’m afraid the XML import cannot remove relations. It’s only for setting relations. To start from a clean slate, you could try editing the database directly. In the wp_postmeta table, anything with the “crp_relations_to” and “crp_relations_from” meta_key can be removed to remove relations.

    2) It’s not a problem to import the same file twice. If a relation already exists, it basically just stays the way it was. It will not become a duplicate.

    Kind regards,
    Brecht

Viewing 1 replies (of 1 total)

The topic ‘Importing relations from XML’ is closed to new replies.