Support » Plugin: Import CSV or XML Datafeed With Ease » Impossible to upload html code as post content?

  • Resolved Kyrian

    (@oloccina)


    Hello,
    I am testing the extension (free version) trying to upload some wp posts but with html code in the “content” column (see example below)

    everything runs smoothly when uploading (I am using your sample csv file, so column names are already ok)
    but when running the actual import, I think the html code create a conflict, because the data are all mismatched (eg. content is imported as title and so on…)

    Thank you

    ====
    EXAMPLE code

    post_title;post_content;post_category;post_author;post_slug;post_status
    6;<div class=”testimonial”>
    <div class=”testimonial-text”>Solo il presente esiste, ma la sua musica si riverbera nel tempo</div>
    <div class=”testimonial-author”>dai 33 Principi Poetici di ONAris</div>
    </div>;I 33 Principi Poetici di ONAris;ONAris;6;publish
    7;<div class=”testimonial”>
    <div class=”testimonial-text”>Osservo, accetto, trasformo</div>
    <div class=”testimonial-author”>dai 33 Principi Poetici di ONAris</div>
    </div>;I 33 Principi Poetici di ONAris;ONAris;7;publish
    8;<div class=”testimonial”>
    <div class=”testimonial-text”>Eros è il fuoco sensuale dell’amore in azione, e ad esso io scaldo il mio cuore</div>
    <div class=”testimonial-author”>dai 33 Principi Poetici di ONAris</div>
    </div>;I 33 Principi Poetici di ONAris;ONAris;8;publish

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Smackcoders Support

    (@smacksupport)

    Hi,

    WP Ultimate CSV Import helps you to import the post_content with the HTML tag. Kindly set the values inside the post_content without line breaks. I have attached the sample text file with your content in the below link, please set the values as given in the attached file to avoid errors in the future import.
    https://www.dropbox.com/s/qtmw74nipinhcr6/myuri.txt?dl=1

    Regards.

    Thread Starter Kyrian

    (@oloccina)

    Thank you for your help!

    Is there any particular reason why in the html code in the file you sent me
    all double quotes have a particular look (see https://www.screencast.com/t/rPM3V2P1j) ?

    If I paste here the doubel quotes you used and the one I get from my keyboars they looks exactly the same, but in the notepad on my PC the look different (see https://www.screencast.com/t/f7IAw4DmCe)

    Is this the reason it wasn’t working for me or it doesn’t matter?

    Thanks

    • This reply was modified 4 years, 1 month ago by Kyrian.
    Plugin Contributor Smackcoders Support

    (@smacksupport)

    Hi,

    I just removed the line breaks and spaces available in the post_content row. For example, You can keep the data in your file like mentioned below

    post_title;post_content;post_category;post_author;post_slug;post_status
    6;<div class=”testimonial”><div class=”testimonial-text”>Solo il presente esiste, ma la sua musica si riverbera nel tempo</div><div class=”testimonial-author”>dai 33 Principi Poetici di ONAris</div></div>;I 33 Principi Poetici di ONAris;ONAris;6;publish
    7;<div class=”testimonial”><div class=”testimonial-text”>Osservo, accetto, trasformo</div><div class=”testimonial-author”>dai 33 Principi Poetici di ONAris</div></div>;I 33 Principi Poetici di ONAris;ONAris;7;publish
    8;<div class=”testimonial”><div class=”testimonial-text”>Eros è il fuoco sensuale dell’amore in azione, e ad esso io scaldo il mio cuore</div><div class=”testimonial-author”>dai 33 Principi Poetici di ONAris</div></div>;I 33 Principi Poetici di ONAris;ONAris;8;publish

    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Impossible to upload html code as post content?’ is closed to new replies.