Thread Starter
dneto
(@dneto)
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
Thread Starter
dneto
(@dneto)
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.
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?
Thread Starter
dneto
(@dneto)
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!
Thread Starter
dneto
(@dneto)
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.
Thanks, I’ll give it a try.