Need plugin that will insert HTML at bottom of posts that use specific keywords

Discussion in 'WordPress' started by SEO4hire, Feb 7, 2010.

  1. #1
    Hello. Just as the title says, I would like to find a plugin that will insert the HTML that I specify for posts that use certain keywords. Example: I have 20 posts that use the phrase Motorola Razr, so I would like the plugin to insert some HTML code at the bottom of every post that uses this keyword phrase. Does anyone know if this plugin exists, and where I can find it? Any help would be greatly appreciated...
     
    SEO4hire, Feb 7, 2010 IP
  2. mrhrk01

    mrhrk01 Well-Known Member

    Messages:
    664
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    145
    #2
    You could just simply in php:
    create an array with your keywords in it.
    Then create a switch/case statement in your php file(the one that deals with the posts) which would then display the appropriate html code for the matching keyword.
    I think that could also work well, you would only need to edit the theme you have currently got activated on your site.
     
    mrhrk01, Feb 8, 2010 IP