WordPress automatically generates a hyperlink for the URL address in the article

Source: Internet
Author: User

 

When writing an article in WordPress, you sometimes need to add some URLs, such as outsiderla. me.

However, WordPress does not automatically recognize this address. Therefore, only a URL address in the form of common text is displayed to the reader. Generally, we need to add a hyperlink to this address through the WYSIWYG editor.

However, WordPress provides a function named make_clickable that recognizes the URL address. To activate this function, when you enter the URL address again, the reader will see a URL address with a hyperlink.

Open the functions. Php file and add:

Add_filter ('The _ content', 'Make _ clickable ');

The function is successfully activated. This function can convert URI, www, ftp, and e-mail addresses into hyperlinks.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.