1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help on removing links in WP blog

Discussion in 'Blogging' started by kahthan, Nov 10, 2009.

  1. kahthan

    kahthan Newbie

    Joined:
    Apr 10, 2009
    Messages:
    16
    Likes Received:
    3
    Hi,

    I have an old wordpress blog i bought some time ago but never had the chance to tinker with. It is PR3 but every post has multiple links to external sites which i want to remove. There are around 600+ posts so is there a plugin or any method short of removing the links one by one, post by post?

    Cheers,

    Kahthan
     
  2. bryanon

    bryanon Executive VIP Premium Member

    Joined:
    Oct 16, 2009
    Messages:
    1,395
    Likes Received:
    1,479
    I'm not sure if there's a plugin for that but what I can suggest you is this:

    1. Export all your blog posts (there's a feature in the CP for that)
    2. Open the exported file in your favourite editor (I use Notepad++ for such things - works wonders)
    3. Filter out lines that contain the phrase "http://" and work your way through the file
    4. Import the modified file, overwriting all your posts

    If it's 600+ posts then it can be a lot of hassle but probably doable in a couple of hours.
     
    • Thanks Thanks x 1
  3. kahthan

    kahthan Newbie

    Joined:
    Apr 10, 2009
    Messages:
    16
    Likes Received:
    3
    thanks ill try that, ideally if notepadd++ can do wildcard based search and replace im sorted, any other ideas would be greatly appreciated.

    cheers

    kahthan
     
  4. SpamHat

    SpamHat Junior Member Premium Member

    Joined:
    Apr 27, 2009
    Messages:
    151
    Likes Received:
    67
    Location:
    UK
    Just do an SQL query on all the posts.
     
  5. muskeyaq

    muskeyaq Newbie

    Joined:
    Nov 11, 2009
    Messages:
    1
    Likes Received:
    2
    This is what you looking for work great for me.... http://wordpress.org/extend/plugins/search-and-replace/
    i use to replace keywords,links what ever you deisire...enjoy :D

     
    • Thanks Thanks x 2