WordPress.org

Forums

MT Importer for WP 2.0.2 (7 posts)

  1. dneto
    Member
    Posted 7 years ago #

    Two requests:

    1) I've tried to import to WP (v2.0.2) my old Movable Type blog data (v3.2) and I noticed the importer striped away some of my common used tags (AREA and MAP are just 2 of them). Can you solve this?

    2) I used a modified version of import-mt.php and it kept my MT post ids (also modified to export post ids) to the wp_posts table (with the auto-increment option SET!), but the comments were not correctly assigned to their respective posts, altough they were correcly imported to the database. Sugestions?!

  2. dneto
    Member
    Posted 7 years ago #

    Just to let you guys know, I'm using:

    - Apache 1.3.34;
    - PHP 5.1.2;
    - MySQL 5.0.19;
    - WordPress 2.0.2;
    - Movable Type 3.2

  3. dneto
    Member
    Posted 7 years ago #

    WordPress crew? Are you there? Am I doing something wrong? At least, gimme an answer! I know that importing post ids isn't the regular way, but the STRIPPED TAGS must be fixed! Can you help me? ANYONE can help me? I really wanna use WordPress instead of MovableType.

  4. tomyun
    Member
    Posted 7 years ago #

    WordPress has a built-in tag stripper. If you want to preserve your imported tags, you need to alter the behavior of this stripper.

    Actually, I have no idea to disable it, but managed to insert some additional tags into allowlist. You can find out $allowedposttags and $allowedtags in /wp-include/kses.php.

    But I don't recommend changing them directly. You may want to create my-hacks.php file and enable it in your admin page.

    My my-hacks.php file looks like this:


    <?php
    define('CUSTOM_TAGS', true);
    $allowedposttags = //copy it from kses.php and modify
    $allowedtags = //as above
    ?>

    PS: I don't think it's the best solution. Is there any better idea?

  5. dneto
    Member
    Posted 7 years ago #

    I did these modifications and it worked. But I have to guess what tags I wrote in the past, alter the my-hacks.php, re-import data and see it working. Bumf!

  6. dneto
    Member
    Posted 7 years ago #

    Here's my "my-hacks.php" for you guys who are having trouble importing your posts and have tags being stripped like I did:

    http://www.danielneto.com.br/weblog/my-hacks.phps

    Hope these tags help you out. It worked for me.

  7. tbishop61
    Member
    Posted 7 years ago #

    Thanks, I'll give it a try.

Topic Closed

This topic has been closed to new replies.

About this Topic