• Resolved ajo000

    (@ajo000)


    When I’m trying to import content using XML file, then <h1><h2> etc.. tags are removed from content by WP All Import..I just want to have these tags in my content .. what should I do to prevent WP ALL import from removing these tags from imported content ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ajo000

    (@ajo000)

    xml example :

    <?xml version="1.0"?>
    <file>
    <post id="12345">
    <title>this is article title</title>
    <content>
    
    <h2>What is the best thing in the world</h2>
    
    the best thing is wordpress
    
    
    </content>
    </post>
    </file>
    Plugin Author WP All Import

    (@wpallimport)

    Hi @ajo000,

    The HTML in your XML file (inside the content tag) needs to be encoded, or wrapped in CDATA tags. So, it’d either need to look like this:

    <content>
    
    &lt;h2&gt;What is the best thing in the world&lt;/h2&gt;
    
    the best thing is wordpress
    
    
    </content>

    Or, this:

    <content><![CDATA[
    
    <h2>What is the best thing in the world</h2>
    
    the best thing is wordpress
    
    
    ]]></content>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to prevent tags from being removed from imported content?’ is closed to new replies.