Mark Pilgrim’s slugs–
-
I’m working on transferring a Movable Type blog into WordPress, and I’d like to keep my permalinks as similar as possible. I’ve read up on how to set up the virtual site structure, which gives me part of what I want, but there’s a crucial missing piece.
I’ve been using Mark Pilgrim’s “cruft-free slugs” technique for generating permalinks in Movable Type. Basically, if there’s something entered in the KEYWORDS field, it uses that to build the file name in the permalink; if not, then it dirifies the post’s TITLE. I’d like to be able to replicate this in WordPress, but I’ve been unable (as yet) to concoct the right recipe to do so.
I’d also like to be able to dirify with underscores rather than hyphens, but I imagine that’s an easier hack.
There are, of course, a number of solutions involving redirects that I could put together, thus avoiding the dreaded linkrot, but those aren’t as elegant, and I’d like to use them only as a last result.
—Okay, so I poked about a little before posting, and it appears I could cook up something with the SLUG field? Maybe by editing the raw data to stick the KEYWORD or TITLE entry into SLUG and then importing, thus skipping the whole need for an IF/THEN thingie… Anyway. If anybody’s solved this particular import problem, and has a quick and easy hack (because we do like quick and easy), it would be much appreciated. Thanks!
- The topic ‘Mark Pilgrim’s slugs–’ is closed to new replies.