Deluxe Blog Tips About Projects

Make URL Clickable In WordPress

Make URL Clickable In WordPress

Sometimes, you blog post contains many links (for example a download page), then it wastes a lot of time if you make each link clickable manually. Fortunately, WordPress has a built-in function that can help us to convert every URL in plain text into a clickable link.

This function is make_clickable(). It works with URI, www, ftp, and email addresses. So, to linkify post content, just add the following code into your functions.php file:

add_filter('the_content', 'make_clickable');

You might want to read more about the make_clickable() function at the Codex.

If you want to linkify text outside WordPress, you can do it with PHP regular expressions. BuiltInternet has written a good article about this.

Subscribe to the Newsletter

Subscribe to get my latest content by email. I won't send you spam. Unsubscribe at any time.