Skip to main content

Timeline for data (html) migration to posts

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Feb 15, 2017 at 14:45 vote accept Sheraz Ahmed
Feb 15, 2017 at 14:45 answer added Sheraz Ahmed timeline score: 0
Feb 9, 2017 at 16:29 comment added Sheraz Ahmed wouldn't XML still contain html tags etc?
Feb 9, 2017 at 16:20 comment added David Lee have you considered converting the data to the XML format for importing that WordPress accepts?
Feb 9, 2017 at 14:56 comment added Sheraz Ahmed wp_insert_post() passes data through sanitize_post(), which itself handles all necessary sanitization and validation (kses, etc.). but I need the images and links as they are in the wordpress... I will write a plugin for this if I find a solution.
Feb 9, 2017 at 14:48 comment added C C nah, I was just wondering. But I do tend to trust the organic WP method more than trying to roll my own DB functions. If I was doing this, I'd write it as a plugin and use wp_insert_post...
Feb 9, 2017 at 14:47 comment added Sheraz Ahmed I am writing a separate script outside WP on my local machine, connecting just the database and working with it. However, if wp has it's own way of doing this, I'll happily write the script in WP. Suggestion ?
Feb 9, 2017 at 14:40 comment added C C Just curious - you couldn't use a higher level WP function (e.g. wp_insert_post) and instead had to go to a direct SQL call?
Feb 9, 2017 at 14:31 history asked Sheraz Ahmed CC BY-SA 3.0