WordPress.org

Ready to get started?Download WordPress

Forums

insert target= _blank_ in all links (7 posts)

  1. XeroCool
    Member
    Posted 9 years ago #

    Hiya,
    I'm kinda screwed up here. I would like my posts to automatically convert all links that have blah to blah (so it adds target= _blank_") to it.
    Any way i can do this? with out doing it automatically for every post?

  2. Beel
    Member
    Posted 9 years ago #

    This is like aiding and abetting a lawbreaker, but you could so a global search and replace in the database using phpmyadmin.

  3. XeroCool
    Member
    Posted 9 years ago #

    I'm not *that* familar with phpmyadmin..I have it but i barely know how to modify the tables.

  4. Beel
    Member
    Posted 9 years ago #

  5. Beel
    Member
    Posted 9 years ago #

    backup first ;-)

  6. XeroCool
    Member
    Posted 9 years ago #

    UPDATE wp_posts
    SET post_content =
    REPLACE(post_content
    ,' stringtobereplaced'
    ,' withthisstring'
    );
    So what would i put in "stringtobereplaced" and "withthisstring"...

  7. Minna
    Member
    Posted 9 years ago #

    Hmm.. interesting. I've always found it very annoying that external links open in the same window... :-) Especially if it's not obvious they're external.
    (sorry...!)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.