Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
How to import a WordPress blog
I’d like to move the blog I’ve been maintaining at http://iswhatido.org to Textpattern.
In the almost total absence of any docs on how to do that, here’s what I’ve done:- dumped my wordpress database and restored it on the txp host with the name ‘wp’
- added the following lines to the beginning of the script textpattern/include/import/import_wp.php:
<blockquote>
$b2dblogin = “my_login”;
$b2db = “wp”;
$b2dbpass = “my_password”;
$b2dbhost = “localhost”;
$wpdbprefix = “”;
$insert_into_section = “article”;
$insert_with_status = “1”;
$default_comment_invite = “0”;
</blockquote>
I did that to provide what I thought would be the proper values to the doImportWP function. - I then entered into the browser the URL http://mysite.com/textpattern/include/import/import_wp.php
And nothing happened. The browser window went blank, and the site remained as it had been.
If anyone can give me any pointers here, I’d be most grateful.
Richard
Offline
Re: How to import a WordPress blog
1) Undo the editing.
2) Login to textpattern, go to admin -> import
3) Select where to import from and enter connection-details.
Offline
Re: How to import a WordPress blog
That was entirely too easy. (I guess that accounts for the lack of articles explaining how to modify the import scripts :-)
Thanks very much.
Make that very, very much.
Richard
Offline
Pages: 1