Forums

How to Automatically turn Links into URL's? (7 posts)

  1. wsmokah
    Member
    Posted 4 years ago #

    I am trying to figure out whether its possible to convert the url's in a post to actual links. If someone know anything about this, it would be greatly appreciated.

    Cheers

  2. Michael Torbert
    WordPress Virtuoso
    Posted 4 years ago #

    Sure, a plugin could be easily written to do that... but why can't you just type the a href= ...?

  3. boober
    Member
    Posted 4 years ago #

    I'm pretty sure I've seen a plugin that does that.

  4. wsmokah
    Member
    Posted 4 years ago #

    @hallsofmontezuma: It's because I'm going to have about 10-25 links in each post that I make. And I'm going to be making about 50+ posts in less than a week!

    @boober: After doing some searching around, I found a plugin called MightyLinker. But it doesnt work with WP 2.5. Here's the link to it: http://mightyhitter.com/main-page/plugins/mightylinker

    If anyone can make it compatible with WP 2.5, that would be greatly appreciated!

  5. Otto
    Tech Ninja
    Posted 4 years ago #

    Or just add this to your theme's functions.php file:
    add_filter('the_content', 'make_clickable',9);

    wsmokah: While I do see your point, if you're going to have that many links, wouldn't you want them to link from actual words and content? Having blunt URLs seems like it would be less pretty.

  6. wsmokah
    Member
    Posted 4 years ago #

    @otto42: This is just temporary. I need to meet a deadline to get my blog back up and running very soon. I am going to be changing these links once everything is running and when I have more time.

    Thank you for that code, it really helped! I want to make the url's open in a new window. How would I do that?

  7. Otto
    Tech Ninja
    Posted 4 years ago #

    I want to make the url's open in a new window. How would I do that?

    Not to be annoying or anything, but ideally, you would not do that. It's not a nice thing to do. Let people choose whether they want to do that themselves.

    Also, the "target" attribute is deprecated in XHTML, so there is no valid way to do it other than browser-dependent javascript.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags