OK, after a couple of hours of messing with this, I'm having difficulty figuring out the bit that will make it work. At first I was crashing the importer, and I'm not doing that, but it's not importing the data I'm talking about. Here's what I'm dealing with:
http://www.rangerfans.com/mt-export.txt
That's the short export file from Movable Type with about 6 entries or so in it. Not going to do the one with multiple thousands until I get the system locked down. :)
There's three parts from each entry I want to import. They're these:
TAGS:
KEYWORDS:
SCORE:
"TAGS:" I want to import to a custom field called GAMEDATE
"KEYWORDS:" I want to import to a custom field called MLBURL
"SCORE:" I want to import to a custom field called SCORE
Tags has a different format than the other two, plus it's not always there. In looking at the MT importer, it appears I'll have to come up with two bits of code to get this all imported. I've been trying with just tags so far before I moved to the others. The most recent attempt was this sequence of code.
} else if ( 'TAGS:' == $line ) {
$tags = trim( substr($line, strlen('TAGS: ')) );
add_post_meta($post_id, 'GAMEDATE', $tags);
I found that line you're talking about, but if I put my code attempt RIGHT after that line,it munges up the import pretty good. If I put it down with all the other else if's, it doesn't crash anything, but nothing gets imported.
Which tells me my code is screwed up. I tried replicating bits of code from the other import sections that work from similar lines around the "TAGS:" line in my import file, but they don't seem to work.
This is obviously a non coder here trying to cobble this together, so if you have any further advice, I'd appreciate it.