Automatically Turn URLs To Links on WordPress

Over at BlogEnergizer, our premium members are always welcome to submit their goodies, contests and any activities they are doing for other members to discover and blog about. We want to make posting as quick and simple as possible for them. So that when they paste a URL, they won’t have to link it. Initially, I thought I’d have to get a plugin to do it. But thankfully I found out, that’s not necessary! I don’t like to install too many plugins anyway.

Thanks to Otto, the knowledgeable moderator at WordPress.org, I found out WordPress actually has this capability. You only need to add this code to your active theme’s functions.php file.  Yay!

add_filter('the_content', 'make_clickable',9);

Do You Want A Hands-Free Business?

Then get this guide to help you systemize your business so you'll have more time working on your business.

!
!

Hey! I want to make sure you know what you're getting here. In addition to the guide, you will also receive our memo that includes special offers, announcements and of course actionable information.

Terms and Conditions checkbox is required.
Something went wrong. Please check your entries and try again.
Facebook Comments

2 Comments

  1. Jen Knox on January 30, 2009 at 9:04 am

    Sweet….thanks Lynette for the tip! Anything to make things easier and automatic!

    That was always one of my least favorite things about WP. And I agree about the plugin thing. I prefer to keep my plugins to a minimum too so that they don’t interfere with each other. Nice that this can be done so easily!



    • Lynette on January 31, 2009 at 3:04 pm

      Hey Jen, you wouldn’t believe how excited I was to find that little code bit.

      Oh yea about plugins. Honestly, some things are sooo simple you don’t need a plugin.