How To Display Twitter Followers Count In PHP

How To Automatically Link Twitter Usernames in WordPress

Twitter is getting huge everyday and almost all huge companies are using it to promote and tout their content. Since we often mention various Twitter usernames in our posts and other places, we found a way to automatically link Twitter usernames in WordPress.

This snippet comes from folks at WPBeginner. Just add following snippet to your current theme’s functions.php file:

Above code will do the job. The above code will automatically link to Twitter usernames in WordPress posts. You can also enable this feature in your comments and excerpts by adding following snippet: