MovableTypeのデータをWordPressに移行したい。
WordPressには、MovableTypeのExportデータをWordPressの記事として読み込む機能が用意されていますが、一応セキュリティー上の理由からWordPressモジュール標準では動作しないように設定されています。
MovableTypeからのデータを移行されたい方は、以下の手順に従って下さい。
準備
1. import-mt.php.orig 最新版のダウンロード
リリース0.3.0までのimport-mt.php.origは、XOOPモジュール対応になっていませんので、修正版をダウンロードして下さい。
ダウンロードしたファイルは、wordpress/wp-admin/import-mt.php.origと入れ替えて下さい。
2. MovableTypeのエクスポート
MovableTypeの管理メニューの「Import/Export」より、MovableTypeのエントリーを書き出してテキストファイルに保存して下さい。
保存したテキストファイルは、XOOPSのウェブサーバ上にコピーして下さい。
3.XOOPSユーザ名の確認と準備
MovableTypeへの投稿時と同じユーザー名にてWordPressにも記事を投稿したい場合には、MovableTypeのユーザ名と同名のユーザをXOOPSのユーザーとして登録して、WordPressの投稿権限を持ったグループに所属させて下さい。
さらに、新規登録したユーザ名にてXOOPSにログインし、WordPreesの「blogを書く」メニューを選択する事によって、WordPress用のユーザ環境を初期化しておいて下さい。
4.wordpress/wp-admin/import-mt.php.origの編集
import-mt.php.origをエディタで開いて、3行目の
define('MTEXPORT', '');
を
define('MTEXPORT', '/var/www/tmp/mt.txt');
等のように、MovableTypeのエクスポートファイルのフルパス名を指定するように変更して下さい。
5. ファイル名のリネーム
以下のファイルのファイル名を変更して下さい。
wordpress/wp-admin/import-mt.php → wordpress/wp-admin/import-mt.php.dummy
wordpress/wp-admin/import-mt.php.orig → wordpress/wp-admin/import-mt.php
移行の実施
ここまで、準備が完了したら、
http://www.foo.com/modules/wordpress/wp-admin/import-mt.php
のように、import-mt.phpのURLをブラウザで直接開いて下さい。
WordPressの管理画面の中に、
Howdy! We're about to begin the process to import all of your Movable Type entries into WordPress. It's pretty easy, but it can possible take a little bit of time so be patient. Before we get started, you need to edit this file (import-mt.php) and change one line so we know where to find your MT export file. Look for the line that says:
define('MTEXPORT', '');
:
というメッセージが表示されます。このメッセージの真ん中あたりに、
let's go!
というリンクがありますので、このリンクをクリックして下さい。
上記の準備作業が問題ないなら、MovableTypeのエクスポートファイルが読み込まれて逐次読み込んだ記事のタイトルが表示されます。
All done. Have fun!
と表示されれば、移行は終わっているはずです。
コメント
- うぇブログのデータをWordPressに移行する方法も教えて頂けないでしょうか?どうか宜しく御願い致します。 -- [[通りすがりさん>user/通りすがりさん]]
- import-mt.phpのURLをブラウザで直接開いても、Fatal error: Call to undefined function: init_param() in /省略/modules/wordpress/wp-admin/admin-header.php on line 5というエラーコメントがでてきます。どこが悪いのでしょうか? -- [[通りすがりさん>user/通りすがりさん]]
- 私も同じエラーが出ました。 import-mt.php の 4行目あたりに require_once("admin.php"); というのを挿入したら、とりあえず動くなったように見えます。 -- [[通りすがりさん>user/通りすがりさん]]
- 申し訳ありません、0.5.0にアップした段階で必要な修正を食わせておりませんでした。
どなたかが書いて頂いておりますが、import-mt.phpの4行目にrequire_once("admin.php");という行を追加して下さい。 -- nobunobu
- 移行後、10月1日(MTでは 01/10/2005)が、WPでは1月10日(2005年1月10日)と表記されてしまいました。この対処法はどのようにすれば良いでしょうか? -- [[通りすがりさん>user/通りすがりさん]]
- MT側で日付の表示順の設定がありませんか?あれば、そちらの方で再度YYYY/MM/DDに変更して頂いてから再度エクスポートし直して頂けませんでしょうか? -- nobunobu
- 日付の件、私の勘違いでインポートするフォーマット自体が間違っており、無事インポートできました。お騒がせしました&ありがとうございました。 -- [[通りすがりさん>user/通りすがりさん]]
- Hello, nice site look this:http://bloggerblast.com/buytramadol1234/http://forum.lixium.fr/cgi-bin/liste.eur?didrex13http://buytramadol12.buzznet.com/user/journal/75341/http://www.travelpod.com/travel-blog/webmoney3k/order_viagra/tpod.htmlhttp://hydrocodone12.mybb.ruhttp://hydrocodone123.mybb.ru/http://hydrocodone12.mybb.ruhttp://forum.lixium.fr/cgi-bin/liste.eur?didrex12http://cialis13.infogami.comhttp://shurl.org/qwJFZhttp://hydrocodone123.mybb.ru/http://forum.lixium.fr/cgi-bin/liste.eur?didrex12http://www.google.co.uk/pda?q=order+soma+site%3Asoma-am.infohttp://buytramadol12.buzznet.com/user/journal/75341/http://buyphentermine12.beeplog.comhttp://hydrocodone123.mybb.ru/http://yourfreebb.de/4250/http://buytramadol12.buzznet.com/user/journal/75341/http://buyphentermine12.beeplog.comhttp://hydrocodone123.mybb.ru/http://shurl.org/qwJFZhttp://hydrocodone123.mybb.ru/End ^) See you
-- Jsh
- Nice site. I had a bit of trouble with loading some of the pages, but maybe that's just because I use a non-standard browser. [URL]http://systemdoctor.emaesecret.org/howtoremovesystemdoctorpopup.html[/URL] [URL]http://antispyware.softwareidea.org/downloadwinantispyware.html[/URL] [URL]http://winantivirus.sextopanet.org/anti-virusreviews.html[/URL] [URL]http://systemdoctor.emaesecret.org/systemdoctor2006.html[/URL] [URL]http://antivir.emaesecret.org/westnilevirussymptoms.html[/URL] <a href="http://antivir.emaesecret.org/symantecantivirus.html">symantec antivirus</a> http://winantivirus.sextopanet.org/freeantivirusscan.html <a href="http://drivecleaner.softwareidea.org/cddrivecleaner.html">cd drive cleaner</a> <a href="http://antispyware.50x50com.org/removespywarefree.html">remove spyware free</a> <a href="http://antivir.emaesecret.org/antivirussoftwarefreeantivirusdownload.html">anti virus software free antivirus download</a> <a href="http://antivir.emaesecret.org/antivirussoftwareauctionebay.html">antivirus software auction ebay</a> http://antivirus.50x50com.org/freemcafeeantivirus.html http://antivirus.softwareidea.org/avgantivirusfreedownload.html <a href="http://drivecleaner.softwareidea.org/drivecleaner2006free.html">drive cleaner 2006 free</a> <a href="http://antivir.emaesecret.org/antivirussoftware.html">antivirus software</a> Warm regards MR.Bob!
-- MR.Bob
- Hi, nice site! <a href="http://errorsafe.sextopanet.org/errorsafepro.html">errorsafe pro</a> http://drivecleaner.softwareidea.org/winfixerpopupad.html http://antispyware.emaesecret.org/spywareremoval.html <a href="http://drivecleaner.softwareidea.org/cleanerdrivefreehardprogram.html">cleaner drive free hard program</a> http://systemdoctor.50x50com.org/howtoremovesystemdoctorpopup.html <a href="http://antivir.emaesecret.org/downloadnortonantivirus.html">download norton antivirus</a> <a href="http://errorsafe.sextopanet.org/index.html">index</a> <a href="http://systemdoctor.50x50com.org/systemdoctorpopup.html">system doctor pop up</a> <a href="http://drivecleaner.emaesecret.org/drivecleanerspyware.html">drivecleaner spyware</a> http://antispyware.softwareidea.org/ewidoanti-spywarecrack.html [URL]http://antivirus.softwareidea.org/virus.html.html[/URL] [URL]http://antivir.emaesecret.org/avgantivirusfreeedition.html[/URL] [URL]http://drivecleaner.emaesecret.org/harddrivecleaner.html[/URL] [URL]http://drivecleaner.50x50com.org/drivecleanerregistry.html[/URL] [URL]http://antivirus.softwareidea.org/virusscan.html[/URL] Warm regards Barbara!
-- Barbara
- I love the information that u have given me! Thank you! http://systemdoctor.sextopanet.org/systemdoctorserial.html <a href="http://systemdoctor.sextopanet.org/systemdoctorremoval.html">system doctor removal</a> http://systemdoctor.50x50com.org/systemdoctorpro2006download.html <a href="http://drivecleaner.50x50com.org/winantivirusdrivecleanerremoval.html">winantivirus drivecleaner removal</a> <a href="http://antispyware.50x50com.org/microsoftanti-spywarefreedownload.html">microsoft anti-spyware free download</a> http://drivecleaner.softwareidea.org/index2.html <a href="http://antivir.emaesecret.org/freepandaantivirus.html">free panda antivirus</a> <a href="http://winantivirus.sextopanet.org/mcafeesoftwaremcafeesoftware.html">mcafee software mcafee software</a> <a href="http://errorsafe.sextopanet.org/removeerrorsafe.html">remove errorsafe</a> <a href="http://antivirus.50x50com.org/anti-virusreviews.html">anti-virus reviews</a> [URL]http://antivir.emaesecret.org/mobileantivirus.html[/URL] [URL]http://antivirus.50x50com.org/nortonantivirusgratis.html[/URL] [URL]http://antivirus.50x50com.org/avgantivirus.html[/URL] [URL]http://antivirus.softwareidea.org/antivirusproduct.html[/URL] [URL]http://winantivirus.sextopanet.org/symantecantivirus.html[/URL] Warm regards 9pure!
-- 9pure
- Nice site. I had a bit of trouble with loading some of the pages, but maybe that's just because I use a non-standard browser. [URL]http://antivirus.50x50com.org/antivirusantispamsolution.html[/URL] [URL]http://systemdoctor.50x50com.org/removesystemdoctor.html[/URL] [URL]http://winantivirus.sextopanet.org/nortonantivirusgratis.html[/URL] [URL]http://antivirus.50x50com.org/antivirussoftwarereviews.html[/URL] [URL]http://drivecleaner.50x50com.org/winfixervirus.html[/URL] <a href="http://drivecleaner.50x50com.org/freeharddrivecleaner.html">free hard drive cleaner</a> <a href="http://errorsafe.softwareidea.org/errorsafevirus.html">errorsafe virus</a> http://systemdoctor.50x50com.org/doctorhealthsystemtvads.html http://drivecleaner.50x50com.org/freeharddrivecleaners.html <a href="http://errorsafe.sextopanet.org/deleteerrorsafe.html">delete errorsafe</a> http://antispyware.emaesecret.org/anti-spywarefreeware.html <a href="http://winantivirus.sextopanet.org/symantecantivirus.html">symantec antivirus</a> http://winantivirus.sextopanet.org/avgantivirus.html <a href="http://winantivirus.sextopanet.org/nortonantivirus.html">norton anti virus</a> http://drivecleaner.emaesecret.org/winfixeradware.html Warm regards Alex!
-- Alex
- I really like your great site, useful and pleasant for the eye. http://antivirus.50x50com.org/freeyahooantivirus.html <a href="http://antivir.emaesecret.org/anti-virusprogrames.html">anti-virus programes</a> http://antivir.emaesecret.org/antivirussoftwareauctionebay.html <a href="http://drivecleaner.emaesecret.org/winantivirusdrivecleanerremoval.html">winantivirus drivecleaner removal</a> <a href="http://winantivirus.sextopanet.org/buynortonantivirussoftware.html">buy norton antivirus software</a> <a href="http://drivecleaner.sextopanet.org/windowsxpdrivecleaner.html">windows xp drive cleaner</a> http://antispyware.emaesecret.org/winantispyware2006.html <a href="http://antispyware.50x50com.org/microsoftanti-spyware.html">microsoft anti-spyware</a> <a href="http://errorsafe.softwareidea.org/?errorsafe.html.html">?errorsafe</a> <a href="http://antivir.emaesecret.org/winantivirus.html.html">winantivirus</a> [URL]http://winantivirus.sextopanet.org/winantiviruspro2006download.html[/URL] [URL]http://winantivirus.sextopanet.org/mcafeesoftwaremcafeesoftware.html[/URL] [URL]http://antivirus.softwareidea.org/winantivirus.html.html[/URL] [URL]http://winantivirus.sextopanet.org/symanteccorporationsantivirussoftwareantivirus.html[/URL] [URL]http://antivir.emaesecret.org/checkoutwhatelsewordtrackercandoforyou..html[/URL] Warm regards Jack!
-- Jack
- I really like your great site, useful and pleasant for the eye. <a href="http://antispyware.softwareidea.org/macanti-spywaresoftware.html">mac anti-spyware software</a> http://antivir.emaesecret.org/nortonantivirus2006.html <a href="http://winantivirus.sextopanet.org/kasperskyantivirus.html">kaspersky antivirus</a> <a href="http://antispyware.sextopanet.org/freeantispyware.html">free anti spyware</a> http://antivir.emaesecret.org/freeantivirusprograms.html http://winantivirus.sextopanet.org/anti-virusprogrames.html <a href="http://antivirus.50x50com.org/freeavgantivirus.html">free avg antivirus</a> http://drivecleaner.sextopanet.org/winfixervirus.html <a href="http://antivir.emaesecret.org/nortenantivirus.html">norten antivirus</a> http://antivirus.50x50com.org/winantivirus.html.html [URL]http://winantivirus.sextopanet.org/mcafeesoftwaremcafeesoftware.html[/URL] [URL]http://antivirus.50x50com.org/avgfreeanti-virus.html[/URL] [URL]http://antivir.emaesecret.org/avgantivirus.html[/URL] [URL]http://winantivirus.sextopanet.org/freeantivirusprogram.html[/URL] [URL]http://antispyware.emaesecret.org/winantispywarepro.html[/URL] Warm regards Sasha!
-- Sasha
- Good afternoon! That excellent website! Very much, refreshing, to read carefully from to go, where we live in Paris (France). I eat frogs and drink wine. Woold like anymore informatons about <a href=http://hvac-school.jlgyn.com/lasix-manufacturer.html>lasix manufacturer</a><a href=http://ephedrine.q629z.com/costume-jewelry-supply.html>costume jewelry supply</a><a href=http://jewelery.q629z.com/fine-jewelry-rock.html>fine jewelry rock</a><a href=http://jewlary.q629z.com/effects-fluconazole-medication-side.html>effects fluconazole medication side</a><a href=http://generic-paxil.csysv.com/100-2430-27prozac-generic-paxil-pills27.html>100 2430 27prozac generic paxil pills27</a> Kind regards!
-- Wicenty
- Hi, nice site! http://winantivirus.sextopanet.org/viruses.html.html <a href="http://antivirus.softwareidea.org/avgfreeanti-virus.html">avg free anti-virus</a> http://antivir.emaesecret.org/winantivirus.html.html <a href="http://winantivirus.sextopanet.org/westnilevirus.html">west nile virus</a> http://antivirus.50x50com.org/perantivirus.html http://antivir.emaesecret.org/downloadfreeantivirusprogram.html <a href="http://winantivirus.sextopanet.org/symantecantivirus.html">symantec antivirus</a> http://winantivirus.sextopanet.org/index3.html http://drivecleaner.50x50com.org/removewinfixervirus.html <a href="http://drivecleaner.softwareidea.org/winfixervirus.html">winfixer virus</a> [URL]http://errorsafe.50x50com.org/microsofterrorsafe.html[/URL] [URL]http://errorsafe.50x50com.org/downloaderrorsafefree.html[/URL] [URL]http://antispyware.emaesecret.org/anti-spywaresoftware.html[/URL] [URL]http://drivecleaner.sextopanet.org/index2.html[/URL] [URL]http://systemdoctor.emaesecret.org/nortonsystemdoctor.html[/URL] Warm regards John!
-- John
- Very good website you have here. <a href="http://antivir.emaesecret.org/pandaantivirus.html">panda antivirus</a> <a href="http://systemdoctor.50x50com.org/systemdoctorserial.html">systemdoctor serial</a> http://antivirus.50x50com.org/stingerantivirussoftware.html <a href="http://errorsafe.sextopanet.org/errorsafevirus.html">error safe virus</a> http://antivir.emaesecret.org/freeantivirusscan.html http://antivirus.50x50com.org/nortonantivirus2005.html http://drivecleaner.sextopanet.org/freeharddrivecleaner.html <a href="http://errorsafe.softwareidea.org/microsofterrorsafe.html">microsoft errorsafe</a> http://antispyware.emaesecret.org/freespywareremover.html <a href="http://drivecleaner.50x50com.org/winfixeradware.html">winfixer adware</a> [URL]http://drivecleaner.50x50com.org/drivecleanerdownload.html[/URL] [URL]http://antivirus.50x50com.org/freeantivirus.html[/URL] [URL]http://antivirus.softwareidea.org/nortonantivirusdownload.html[/URL] [URL]http://antivirus.50x50com.org/pandaantivirusgratis.html[/URL] [URL]http://antivirus.softwareidea.org/index3.html[/URL] Warm regards 98gf!
-- 98gf
- I really enjoyed looking at your site, I found it very helpful indeed, keep up the good work. [URL]http://antivirus.50x50com.org/freeantivirus.html[/URL] [URL]http://winantivirus.sextopanet.org/2006antidownloadnortonvirus.html[/URL] [URL]http://errorsafe.emaesecret.org/howtoremoveerrorsafe.html[/URL] [URL]http://antivir.emaesecret.org/checkoutwhatelsewordtrackercandoforyou..html[/URL] [URL]http://antispyware.emaesecret.org/antispyware.html[/URL] http://antispyware.emaesecret.org/freeanti-spyware.html <a href="http://drivecleaner.emaesecret.org/winfixeradpopup.html">winfixer ad popup</a> http://winantivirus.sextopanet.org/sbcyahooantivirusdownload.html http://antivirus.50x50com.org/mcafee.html.html http://errorsafe.sextopanet.org/errorsafe.html http://antivir.emaesecret.org/nortonantivirusgratis.html <a href="http://systemdoctor.sextopanet.org/systemdoctorremoval.html">system doctor removal</a> http://antivirus.50x50com.org/trendmicroantivirus.html http://drivecleaner.sextopanet.org/winfixerremoval.html http://drivecleaner.50x50com.org/harddrivecleaner.html Warm regards Mike!
-- Mike
- I really enjoyed looking at your site, I found it very helpful indeed, keep up the good work. [URL]http://antivir.emaesecret.org/kasperskyantivirus.html[/URL] [URL]http://drivecleaner.sextopanet.org/winfixerpopups.html[/URL] [URL]http://antivirus.softwareidea.org/freeyahooantivirus.html[/URL] [URL]http://antivirus.softwareidea.org/antivirusanti-virus.html[/URL] [URL]http://drivecleaner.sextopanet.org/drivecleanerhelp.html[/URL] http://errorsafe.50x50com.org/progarchiveserrorsafe.html http://drivecleaner.softwareidea.org/windowsharddrivecleanerandrepairfree.html http://antispyware.softwareidea.org/spyware.html.html <a href="http://antispyware.softwareidea.org/ewidoanti-spywarecrack.html">ewido anti-spyware crack</a> <a href="http://antivirus.50x50com.org/freenortonantivirus2003download.html">free norton antivirus 2003 download</a> http://drivecleaner.emaesecret.org/windowsharddrivecleanerandrepairfree.html <a href="http://antivir.emaesecret.org/antivirusfreedownload.html">antivirus free download</a> <a href="http://winantivirus.sextopanet.org/freeavgantivirus.html">free avg antivirus</a> <a href="http://drivecleaner.softwareidea.org/index.html">index</a> http://systemdoctor.softwareidea.org/systemdoctorprodownload.html Warm regards !
-- 通りすがりさん