A single-page PHP script to export all public posts from a Tumblr account and export them as Wordpress extended RSS. (Enhancement fork of Hao Chen's Tumblr2Wordpress.)
Wordpress now supports Post formats. It would be best if the converter could map corresponding Tumblr post type to appropriate post format. Please do look into that.
The Wordpress Importer plugin attempts to forcibly convert (using (int)) the post_id into an integer, which, beyond PHP_INT_MAX always returns 2147483647.
Mayhem ensures.
Wordpress Importer is definitely in the wrong here, but until that is fixed (or you are running T2W on a 64-bit system), you are going to have problems. Perhaps an option in T2W to set the post_id to start from 1 and increment? Rewriting would suffer a bit, but ah well...
After importing when i go to edit articles all the articles have the same edit ID so i can't edit and change date s or else.
is there a solution to that? have tried to empty all the tables and so on, but no luck. does wordpress save a file to remember as it is always the same id that comes up.
thanks for a great tool. that had worked for me before.
The script pre-dates Tumblr's support for multiple photographs per-post, and so only imports the first picture. Need to check for multiple photographs and output them as a list.
There was pretty much no error handling in the original script, so need to start adding it. Most importantly, handle error responses to the Tumblr post queries.
Disqus supports mapping old URLs to new URLs. The old Tumblr URL is preserved in the WordPress permalink field, so exporting it all will be very simple after the mosts have been imported and in the WordPress environement where the URLs are actually generated.
The Tumblr HTML rendering code is shared between this and the Tumblfeed project I run. It would make a hell of a lot of sense to break out the pieces of code that render Tumblr content to HTML and share it between the two.
This would also be a good opportunity to refactor the entire thing.