This script was a bit outdated. I’ve updated it for the changes to PHP since 2004 ($submit is now $POST_[“submit”]) and to wordpress (post_lat and post_lon aren’t part of the stories table anymore.)
The script also only took the lead in – not the whole entry, so I added a bit of code to get the body as well and add a <--more-->
tag between them.
I just used it to convert over 1000 posts on our intranet here, and it worked flawlessly! Many thanks to the original author!
Download the updated script here:
https://www.glitchnyc.com/pnconvert.phps
First, create a new, wordpress install.
Rename this script pnconvert.php and drop it on your webserver, edit the variables at the top, and point your browser to the script.
Once the script runs correctly, click the “submit” button at the bottom to write the posts to your wordpress database.