avatar 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.

🔥 HOT: Interested in boosting your WordPress SEO? My Slim SEO plugin is a super lighweight and automated plugin that handles most the hard work for you: meta tags, sitemap, redirection, schema & link building.

👉 Have a look and you will love it: wpslimseo.com