Opened 17 years ago
Closed 17 years ago
#4472 closed enhancement (fixed)
Movable Type importer: MT keywords to WP tags
Reported by: | shacker | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | minor | Version: | 2.3 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
WP's Movable Type importer currently ignores the Keywords field in MT export files, which is unfortunate when you want to convert a client who wants to switch to WP, but isn't willing to lose their tagging system.
I've modified wp-admin/import/mt.php to convert MT keywords to WordPress postmeta rows as an "mtkeywords" field.
This patch converts to postmeta rather directly to WP core tags because people use MT's Keywords field for all kinds of things besides tagging -- I don't think we can safely assume that MT Keywords should be used as tags in WP. If someone wants to convert them to tags after import and they're using Ultimate Tag Warrior, UTW is able to convert postmeta fields to tags. Hopefully WP core tags will also have this ability.
Attachments (3)
Change History (14)
#4
@
17 years ago
- Summary changed from Movable Type importer: Keywords to postmeta fields to Movable Type importer: MT keywords to WP tags
This 12/12/07 diff is a totally different approach from the earlier one. This one converts MT keywords directly to WP tags during import. Yes, I noted above that there's no guarantee that people using MT keywords were using them for tagging, but I do think that's the majority case. Now using wp_add_post_tags() rather than a direct query.
#5
@
17 years ago
Tested successfully on a very large conversion project: 15,665 posts and 5,784 tags integrated perfectly.
#7
@
17 years ago
Hmm that patch seems to have some random unnecessary stuff in it.
I will clean up and apply but leave this open for feedback on the changes actually working as I don't have anything to test it with.
#9
follow-up:
↓ 10
@
17 years ago
It should be possible to test with the attached mt-export-example.txt from June 07. I'll try a test with that myself. Thanks for cleaning up the extaneous bits, westi.
MT importer gains ability to convert MT keywords to WP postmeta