This script is based on another export script, but uses classic mysql driver instead of PDO.
It creates a WordPress-format export file from a Textpattern blog.
Put the txp-exporter.php file in your Textpattern site, at the same level as the textpattern folder (usually root), then load it up in your web browser. Your directory structure should look like this:
- files/
- images/
- ...
- textpattern/
- ...
- index.php
- ...
- txp-exporter.php
- ...
Navigate to this file (usually http://yoursite.com/txp-exporter.php) and download the XML file.
Install the WordPress Importer Plugin, activate it and go to the Tools -> Import page in admin of your WP site. Click Wordpress and select the previously downloaded file.
- At the top of the file you can tweak the include path to your TXP config file
- If you want to export as raw Textile, append "?exportRaw" to the URL (http://yoursite.com/txp-exporter.php?exportRaw)
This script does not exports any Textpattern custom fields yet.
- PHP 5.2