Bulk Import from XML into WordPress
I wish to import several posts from Excel. I have a script that converts the Excel into a XML format. I have appended the output onto a WordPress XML file. I import the file into WordPress, receive email success confirmation but cannot see the posts?
How must I prepare each post within the XML file? What fields are mandatory? How do I populate fields like URL, and Post ID – are these not auto generated by WordPress?
The blog I need help with is sparknlaunch.wordpress.com.
I tagged this thread for Staff assistance. Please subscribe to it so you are notified when they respond.
Hi there, I’ve asked for assistance with this, and I will get back to you. Thanks!
Already subscribed. Hoping for an answer. Still cannot see imports from previous days.
This should be fairly straight forward as WordPress already accepts various file formats from other blog sites.
Your best guide to how to structure the xml file would be an actual export file with real data, such as https://wpcom-themes.svn.automattic.com/demo/theme-unit-test-data.xml
May I ask how you got these posts into Excel in the first place? Were they exported from another service? If they were, maybe it’d be better to try a straight export-import from that other service, rather than going through this intermediate Excel step. You can see the list of where we can import from, here:
Thanks for the response. Unfortunately this does not totally help.
I have prepared a list of posts outside of any blogging platform – basically in Notepad. I now want to bulk import these into WordPress.
I am using the WordPress XML file as my template to import these posts (from Notepad/Excel) into WordPress.
The below is an example of a post in the XML file. If I populated each field, will my import work?
Based on previous uploads, these posts do not appear.
<pubDate>Fri, 15 Jul 2011 21:51:19 +0000</pubDate>
<content:encoded><![CDATA[Public domain via http://www.burningwell.org/gallery2/v/Landscapes/ocean/IMG_0767.JPG.html%5D%5D></content:encoded>
<excerpt:encoded><![CDATA[Coastline in Huatulco, Oaxaca, Mexico]]></excerpt:encoded>
How many posts do you actually have? It might actually be easier to manually publish them in WordPress rather than creating this xml file. Also, do any of your posts have images?
If I can this import working. 100 plus.
I think your best bet would be to actually try an import plugin on a self-hosted WordPress installation, then export it to xml from there. Or, you can look at the source of one of the plugins and see how they do it.
Otherwise, I don’t have the answer to your question, the sample xml is the best guide to how to structure the data.
Do you have an example of another blogging platform export file? For example, what is contained in a blogger xml file?
The frustrating part is that when I use the WordPress import tool, it says it is successful however posts do not appear and I have no idea why?
Can you supply details from the import log?
While you may want to sign up for a Blogger account and experiment with their export tool to see what those files contain, we still recommend working from a WordPress.org export file, as it’s the closest thing to the WordPress.com format.
Unfortunately I won’t be able to help troubleshoot further as we don’t formally support custom import formats, but I wish you the best of luck!
The topic ‘Bulk Import from XML into WordPress’ is closed to new replies.