Support » Everything else WordPress » replacing bbcode with html in all imported posts

  • I’ve recently moved from bblog to wordpress and I imported all my old posts using a script that I found here and mucked about a bit to get it to work. The problem is that I should have done more to tidy the bbcode into something wordpress would understand.

    The issue I have is that I need the following replacements:

    [i] --> <em>
    [/i] --> </em>
    [pic] --> <img src="/pictures/
    [/pic] --> .jpg" alt "an imported picture" />
    [url= --> <a href="

    It gets worse here because I would need something that could replace:

    ]Chudleys[/url]

    with:

    ">Chudleys</a>

    Can someone advise on the php or mysql code I need to do these replacements in all posts please?

    An example of a duff post containing all those issues on my site can be found here:

    http://www.slickpepper.dyndns.org/fat-ferrets

    Many thanks,

    Dan

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘replacing bbcode with html in all imported posts’ is closed to new replies.