A while back, I wrote about this amazing WordPress function that auto-links content in custom fields.
Up until today, I never had a reason to use it on regular, old WordPress content (i.e. the_content).
It turns out that you need to filter the_content function rather than wrap it in the make_clickable() function like we did with custom fields.
So, the solution is to add the following to your theme’s functions.php file:
// Make hyperlinks clickable even if the user doesn't add the html markup add_filter( 'the_content', 'make_clickable', 12 );
We use the priority of “12” so that it runs after shortcodes and other formatting stuff that naturally happens on the_content.
Pretty cool, eh?
Thanks to BetterWP.net for this solution.
More posts from themightymo.com
Go to phpMyAdmin. Go to the “wp_options” table. Search for the field named, “active_plugins”. Edit the “active_plugins” field. Delete the value/contents of the “active_plugins” row. Save. That’s it! All your plugins are now deactivated!
Websites have multiple layers: Domain Registration When you register a domain, you pay someone ~$20/year for a .com domain. Registration means you are leasing the domain for a year or more. A domain is the “yoursite.com” or “yoururl.net” or “yourorganization.org” that people type into their browser. We use services like Namecheap, Dreamhost, and GoDaddy for…