Say I link to http://www.glumbo.com on one of my posts. I want wordpress to automatically change the anchor text of the link to glumbo.com’s title. How can I do this?
Leave a Reply
You must be logged in to post a comment.
Say I link to http://www.glumbo.com on one of my posts. I want wordpress to automatically change the anchor text of the link to glumbo.com’s title. How can I do this?
You must be logged in to post a comment.
Decided to entertain the idea. Adapted from my snippet that changes anchors to collapsed domain names. Little too verbose, but seems to work.
PS maybe it would make sense to modify post on save rather than filtering on display… Well, as per my comment I don’t think page titles are good for this anyway.
I found a great page that give numerous downloadable examples of how to change the text inside an anchor using jQuery. They are really helpful for web 2.0 and web 3.0 sites.
http://www.ajaxera.com/jquery-change-text-in-anchor/