Import xml feed
Import xml feed
Import xml feed
I found the answer. The way the XML file was being rendered, there was no line break between the item closing tag, and the next item’s opening tag (</item><item>). This passed all validation tests, but WP wouldn’t process it properly. I added the line breaks, and everything worked as expected. Thanks to everyone for the … Read more
A queue may be your solution. The individual items that should be imported can be put into a queue (e.g. in a database table) which can then be worked on 1 by 1 during the WP Cron process. See how other plug-ins handle job queues Hope that helps.
I eventually solved this with a slightly different approach. This allows users to include images in their comments. One issue I’m still having, which is really a whole new question, but worth mentioning here, is that the user may not be allowed to upload new images to the post, and only include images already in … Read more
Try changing foreach ($items as $item){ to foreach ($feed as $item){
Yes. From your description, it appears that all of the requirements to automate this process are in place. The data is provided via XML which can be parsed with PHP to the necessary title, body, meta components. [search] WordPress supports programmatic post insert/delete/edit functions so that part is fairly simple. [WP Codex] Now you just … Read more
I’m not aware of the way this could be done with a WXR file alone; after all attachments are posts, and if you’re importing images from elsewhere you’d need to do all the WordPress processing on them to make them into posts (from WordPress’s point of view). You may get inspired with how this plugin … Read more
How to replace a specific html tag in bulk?
Will using mysqldump get you the results that you want? mysqldump -u username -p dbname wp_posts > myposts.sql You will have to handle the images separately.
How can I export data without using any import/export plugin