Automatic/Conditional Word Substitution in WordPress

5 replies
I'm trying to figure out a solution to a problem.

Let's say there is a generic training program for several different industries on the same WP site. But each industry uses slightly different terminology. Muffler shops call their patrons customers while doctors call their patrons patients, etc.

And let's say that in this training, almost every article or video would reference these patrons.

This problem could be resolved with subdomains but that would mean a bunch of different, complete websites. We really don't want to go this route since there may need to be 10 different sites all with the same information except what they call their patrons. And while there may be advantages to having 10 separate subdomains or domain names, the information is exactly the same so that would just seem to be overkill.

Has anyone ever heard of some sort of automatic but conditional word substitution. For example, if the customer is a muffler shop the software changes everything to customer but at the same time if the customer is a doctor, the word changes to patient?

Thanks.
Mark
#automatic or conditional #substitution #word #wordpress
  • Profile picture of the author Gary Pettit
    That's a GREAT question and I'd love to hear more responses myself.

    I've heard of retargeting but I'm pretty sure that's not what your talking about here.

    Pretty complicated...only thing I would know to do is to create separate websites for each topic/niche/occupation
    {{ DiscussionBoard.errors[10881492].message }}
  • Profile picture of the author Jesus Perez
    I barely post here any more because I'm sick of getting my posts deleted. But I see you posting all the time and I know you deserve this one, Mark.

    I know what you're looking for and it's referred to as "dynamic keyword insertion" in the PPC industry. It's primarily used in PPC when you have a url with a keyword and the presence of that keyword triggers content to be replaced. This creates hyper-targeted landing pages which increase Quality Scores and lower PPC costs.

    In your case, it can be used to replace some words with other words by simply changing the URL a little.

    For example, take the fictional URL www.example.com/about-us/&dynamic_text=plumber. A hypothetical WordPress plugin will look for the "dynamic_text=plumber" part of the URL and replace a tag in the content with the word "plumber".

    Here's a link to a Google Search of WordPress DKI Plugin to speed up your research...

    https://www.google.com/search?q=wordpress+dki+plugin
    (2nd link on SpeedPPC is what I'm talking about. I would direct link but the mods seem to think I own or am affiliated with every website on the planet.)

    Note: you'll need to use unique URL's to show unique content. If you're promoting these through PPC, you're 100% ok. If you're relying on SEO, it may not work out very well because the original page will look like gibberish.

    Hope that helps or at least gets you on the right track.
    Signature

    {{ DiscussionBoard.errors[10881509].message }}
    • Profile picture of the author aizaku
      Thank you Jesus.

      I was stumped! I wanted to help Mark out but didn't know how to word the problem.

      Great response and I learned something new.

      -Ike Paz

      Originally Posted by Jesus Perez View Post

      I barely post here any more because I'm sick of getting my posts deleted. But I see you posting all the time and I know you deserve this one, Mark.

      I know what you're looking for and it's referred to as "dynamic keyword insertion" in the PPC industry. It's primarily used in PPC when you have a url with a keyword and the presence of that keyword triggers content to be replaced. This creates hyper-targeted landing pages which increase Quality Scores and lower PPC costs.

      In your case, it can be used to replace some words with other words by simply changing the URL a little.

      For example, take the fictional URL www.example.com/about-us/&dynamic_text=plumber. A hypothetical WordPress plugin will look for the "dynamic_text=plumber" part of the URL and replace a tag in the content with the word "plumber".

      Here's a link to a Google Search of WordPress DKI Plugin to speed up your research...

      https://www.google.com/search?q=wordpress+dki+plugin
      (2nd link on SpeedPPC is what I'm talking about. I would direct link but the mods seem to think I own or am affiliated with every website on the planet.)

      Note: you'll need to use unique URL's to show unique content. If you're promoting these through PPC, you're 100% ok. If you're relying on SEO, it may not work out very well because the original page will look like gibberish.

      Hope that helps or at least gets you on the right track.
      Signature
      >> 2018 Money Making Method Video Guides [NO OPTIN] <<
      80% Of These Proven Guides Are Free... ]
      {{ DiscussionBoard.errors[10881702].message }}
  • Profile picture of the author Mark Singletary
    Thanks Jesus.

    Whether or not I can use the solution you mention, I think I'm on the right path now as far as seeing possibilities. I'm not sure that will work because the needed replacements will be on many pages throughout the site.

    However, having my eyes opened helped me find some other possibilities that do some conditional text replacement. I just started playing around with them and they aren't quick and easy to figure out but we'll see how it works out.

    I really appreciate the help.
    Mark
    {{ DiscussionBoard.errors[10881739].message }}
  • Profile picture of the author Kurt
    As Jesus suggested, it's dynamic keyword insertion and is based on a parameter in the URL.

    mark.com/page.php?patron
    mark.com/page.php?patient
    mark.com/page.php?customer

    These URLs all point to the same page, but the attribute after the ? will instruct a PHP script to substitute a particular word/phase for another.

    You do need to be careful as this can cause some strange things to happen with words, but since it seems you're using just a single word as opposed to long phrases it probably isn't much of an issue for you.

    You may want to also do some research on "mad lib" to see what you come up with. Mad libs are word games where you substitute a word/phrase for another.
    Signature
    Discover the fastest and easiest ways to create your own valuable products.
    Tons of FREE Public Domain content you can use to make your own content, PLR, digital and POD products.
    {{ DiscussionBoard.errors[10881798].message }}

Trending Topics