So for example: if I post http://testeteststetetst.com, it won’t make it a link if it’s a post. If it’s comment, it does make it a link… Now, I want it for posts too.. Is this possible, if so, how? Can someone help me with that please?
1 comment
Comments are closed.
I use a similar method to the following in a plugin of mine:
I don’t use it for post content, but it should work there.
For that, you’d have to employ the
the_content
filter:Sidenotes:
This is untested.
The regexes are fairly good, but they will fail in niche cases once in a while. Identifying a URL by format only, while avoiding false positives isn’t the simplest of things.