16 Feb
So I’ve had Wordpress installed for all of a week & then they go and release a new version on me. Sigh.
Anyway, I figure if I intend to keep up my web-nerd cred I’d better install it. So I’ve done that & I now need a way to import all my messages from this site to the new site. I’m not game enough to do the direct upgrade thing that’s descibed, I wanted a parrallel cut-over. That’s when I discovered one thing really lacking in Wordpress: There is no export function.
Wordpress has plenty of good scripts for importing posts & comments from other platforms, but nothing to go from one copy of wordpress to another, specifically from one version of wordpress to another. The upgrade instructions show you how to change your current blog from 1.x to 1.5, but not what to do if you want to have them both running at the same time.
In the end I had to do it by doing a DB dump and running the SQL script on the new DB, but I still needed to hack that slightly to get it to work. There are 4 tables that contain the information about the posts & comments: wp_categories, wp_comments, wp_post2cat, wp_postmeta & wp_posts. The only structural change as far as I can see is the removal of the ICBM data (i.e. the post_lat & post_lon fields) from the wp_post table. As it was far easier to modify the 1.5 database than to get the export script to exclude those fields, I just added those two fields to the wp_post table, ran the script then dropped the fields. See, easy!
This was way to fiddly for your average joe-user, there really needs to be a way to export all your posts & comments in a standard format that can be imported into other Wordpress blogs and also into other platforms. If you do need to do this, here’s the code:
alter table wp_posts ADD COLUMN post_lat FLOAT(12,31) after post_excerpt;
alter table wp_posts ADD COLUMN post_lon FLOAT(12,31) after post_lat;
###INSERT STATEMENTS HERE####
alter table wp_posts drop column post_lat;
alter table wp_posts drop column post_lon;
Just replace ###INSERT STATEMENTS HERE#### with the insert statements from the database backup (procedure is shown here) for the tables mentioned above.
So anyway, the long and the short of it is that we’re now running on 1.5, and I haven’t changed anything yet. Time to start on a whole new template!. I’ve installed the very nice Greentrack theme and over the next few days/weeks I’m going to try and hack it into exactly what I want. Props to Sadish for his top work on wpthemes.
21 Responses for "Migrating to Wordpress 1.5"
Bravo on the upgrade. The lack of a decent export plugin/feature was one of the first things I noticed about WordPress. When I first switched to WP from MT 2.6X I was terrified, as I knew very little about MySQL/PHP. At one point, I even tried to go back to MT — but I’m sold now, and I’m in this thing for the long haul now.
I look forward to watching for your changes.
Peace,
Andy
P.S. — How do did you get the ESV RSS feed onto your blog? I once had a plugin to parse the RSS but can’t remember how I did it.
Cheers, thanks Andy.
I’m mucking around with a few templates now. So the look & feel of this site is likely to be changing a fair bit over the next few days until I get it how I want it.
I’m probably going to start with the Greentrack theme and hack it a bit till I get it looking how I want.
ESV RSS feed is a little Perl script that you are welcome to steal from http://blog.slaven.net.au/archives/2003/08/12/rss-feed-for-esv-bible
Oh, so this is the one you made for MT and it works for WP? Niiiiice.
Thanks so much!
Oh man, nevermind. I don’t know how to make a cron job with my host — grrr — thanks though.
No worries.
GNP have a javascript solution too if you’re interested in going down that path: http://www.gnpcb.org/esv/share/services/js/
Bravo on the upgrade. The lack of a decent export plugin/feature was one of the first things I noticed about WordPress. When I first switched to WP from MT 2.6X I was terrified, as I knew very little about MySQL/PHP. At one point, I even tried to go back to MT — but I’m sold now, and I’m in this thing for the long haul now.
I look forward to watching for your changes.
Peace,
Andy
P.S. — How do did you get the ESV RSS feed onto your blog? I once had a plugin to parse the RSS but can’t remember how I did it.
I noticed that image uploads were spitting out bad code… luckily somebody on the Support Forums has a simple answer.
I still have a few plug-ins that aren’t working but on the whole it seems like 1.5 will be great, especially in the spam department.
Oh, so this is the one you made for MT and it works for WP? Niiiiice.
Thanks so much!
Oh man, nevermind. I don’t know how to make a cron job with my host — grrr — thanks though.
No worries.
GNP have a javascript solution too if you’re interested in going down that path: http://www.gnpcb.org/esv/share/services/js/
So which plugins do you use Joel? I’ve hardly installed any.
Thanks for the help, Glenn. I finally got a VOTD running on my blog using a highly hacked-up version of Chait’s CG-Feedread
http://www.chait.net/index.php?p=85
Thanks again.
The plug-ins I use:
Hello Prufie – An edited version of “Hello Dolly” that displays a random quote from “The Love Song of J. Alfred Prufrock”
My MooMus – a custom field handler for “Now Listening” and “My mood” (and whatever else you want to list)
WP-HTMLArea – for my less html savvy posters
I’ve tried using a few of the different gallery plugins for image handling but they all seem too buggy to be very useful. If anyone has any that work reliably I’d love to hear about them…
Support Forums has a simple answer.
I still have a few plug-ins that aren’t working but on the whole it seems like 1.5 will be great, especially in the spam department.
So which plugins do you use Joel? I’ve hardly installed any.
Here are some of the plug-ins I use:
WP Amazon for linking to media off Amazon in posts
Dustan’s Time of Day – For nicer post times
Staticize ReloadedMakes certain areas of your page static… I play around with this one but dont have it on since I moved to 1.5
Post Count – duh
Gravatar – displays the avatar of the poster
Customizable Post Listings I use this for thumbnails in the extended entry field on my photoblog… not working quite right in 1.5 though.
CG-Feedread – A simple RSS/RDF feed aggregator for displaying feeds.
well, there’s no way this comment is getting through without moderation!
And you were right!
I like the way spam karma puts it:
<!-- spamk : Waaaay too many links: 8 -->I think I might bump the threshold up to 4.
Thanks for the help, Glenn. I finally got a VOTD running on my blog using a highly hacked-up version of Chait’s CG-Feedread
http://www.chait.net/index.php?p=85
Thanks again.
“The Love Song of J. Alfred Prufrock”
My MooMus – a custom field handler for “Now Listening” and “My mood” (and whatever else you want to list)
WP-HTMLArea – for my less html savvy posters
I’ve tried using a few of the different gallery plugins for image handling but they all seem too buggy to be very useful. If anyone has any that work reliably I’d love to hear about them…
WP Amazon for linking to media off Amazon in posts
Dustan’s Time of Day – For nicer post times
Staticize ReloadedMakes certain areas of your page static… I play around with this one but dont have it on since I moved to 1.5
Post Count – duh
Gravatar – displays the avatar of the poster
Customizable Post Listings I use this for thumbnails in the extended entry field on my photoblog… not working quite right in 1.5 though.
CG-Feedread – A simple RSS/RDF feed aggregator for displaying feeds.
well, there’s no way this comment is getting through without moderation!
!-- spamk : Waaaay too many links: 8 --I think I might bump the threshold up to 4.
Leave a reply