If you need to put a URL in our WordPress content and make this content clickable, the default way is time consuming: you need to add the link manually, using the WordPress's WYSIWG editor.

But WordPress offers a quite easy way to do it automatically.

All you need to do is activate the function make_clickable in your WordPress, and WordPress will do all the job.

To use this function you only need to add one row of extra code on functions.php :

 

add_filter('the_content', 'make_clickable');

 

This function works with http URL, email addresses and FTP..

 

Found this article interesting?
Subscribe to DomainRegister´s newsletter!

You can unsubscribe at any time by simply clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp s privacy practices here.

  • WordPress
  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

 Come spostare WordPress in una directory differente

Talvolta può esser necessario dover spostare WordPress in una directory differente rispetto a...

 How to Check Which WordPress Version is installed

If you have access to the site, the best way to check which version of WordPress is installed is...

 How to Reset Your WordPress Admin Password

There are basically two ways to reset your WordPress admin password if you lose it:First way (the...

 Attacchi brute force a WordPress attraverso XML-RPC

XML-RPC è una procedura di chiamata remota tramite la quale WordPress permette di pubblicare...

 Posso installare WordPress su hosting Windows?

In teoria, WordPress è compatibile anche con hosting Windows. Tuttavia, l’installazione di...