• Here’s my problem:

    For every post on my blog, I would like to be able to hyperlink every word in post that exactly matches the title to a specified URL.

    So, if the title of my post was “travel”, I would want to hyperlink every mention of “travel” in the post to the specified URL.

    Is there a known simple peice of code I could add to my blog that would achieve this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter webtodd

    (@webtodd)

    Thanks for the information. I’m not sure if that plugin achieves what I’m trying to do…

    The URLs I want to link to out of my blog posts are external websites. Going back to my “travel” example. An example site I might link to would be “http://expedia.com”.

    So, for example, in a post titled “travel”, I would want to link every mention of the word “travel” in the body of the post to the website “http://expedia.com”

    Chris_K

    (@handysolo)

    Ah. There was a new plugin posted here a couple weeks ago that would do that. Now to see if I can dredge up that thread.

    [edit]

    Have a look at http://www.cjbonline.org/index.php/2006/03/21/second-plugin-auto_link/

    I believe it is extensible so you could add your own “tags”.

    Thread Starter webtodd

    (@webtodd)

    That plugin is pretty cool!

    Thread Starter webtodd

    (@webtodd)

    This plugin looks interesting for this also:

    http://www.rushmer.com/articles/wordpress-text-link-ads/

    kevad

    (@kevad)

    OK, this is the old manual way, but it would work if you have to use it and don’t have a module installed.

    You could highlight the first instance of the word and use the link tab, insert the Link URL in the pop-up box, then hit insert. Now goto the html source editor (I like to mark the word wrap option) and find the code for the first instance of the word you just linked and highlight it,

    < a href=”http://www.expedia.com”>travel < /a>

    then right click and use copy and then go paste it in each subsequence instance where the word appears(deleting the non-linked word such as “travel”. Then hit update and in the WYSIWYG editor all instances of the word are linked showing in blue etc…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I dynamically hyperlink words in my post?’ is closed to new replies.