Title: PHP text replacment help
Last modified: August 18, 2016

---

# PHP text replacment help

 *  [aquanius](https://wordpress.org/support/users/aquanius/)
 * (@aquanius)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/)
 * I’m trying to figure out how todo this:
 * Say if I type :urlgoogle: into my post at my blog and when it’s published it 
   displayes as a link to google.
 * Is that possible with php?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/#post-258506)
 * Yes, there are several plugins that do that.
 *  Thread Starter [aquanius](https://wordpress.org/support/users/aquanius/)
 * (@aquanius)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/#post-258507)
 * Can you direct me to any of these “plugins”
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/#post-258508)
 * [http://www.coffee2code.com/archives/2005/03/29/plugin-dynamic-text-replace/#more-43](http://www.coffee2code.com/archives/2005/03/29/plugin-dynamic-text-replace/#more-43)
   
   is one.. c2c might have another there.
 *  [tomhanna](https://wordpress.org/support/users/tomhanna/)
 * (@tomhanna)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/#post-258509)
 * Yes and no. It would easy enough to do that with php, all you would be doing 
   is setting “:urlgoogle:” equal to “[http://www.google.com&#8221](http://www.google.com&#8221);.
   But to do anything with php code within a post, you have to run a plugin like
   PHP Exec or RunPHP.
 * [http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/](http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/)
   
   [http://www.nosq.com/2004/10/runphp-wordpress-plugin](http://www.nosq.com/2004/10/runphp-wordpress-plugin)
 * I’m also assuming you want to have more urls than just Google. You’d have to 
   setup an array somewhere, probably in a separate text file, with all the urls
   you want to automatically link.
 *  [billh](https://wordpress.org/support/users/billh/)
 * (@billh)
 * [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/#post-258581)
 * I use phpGiggle. It spots key words and replaces them with the word as a link.
   Using your example, if Google is your phpGiggle word and you have it set up to
   point to [http://www.google.com](http://www.google.com), then all you have to
   do is type Google in your entry and phpGiggle does the rest. I have over 150 
   words in my phpGiggle list and it doesn’t slow down the site. You can download
   it at:
    [http://sourceforge.net/project/showfiles.php?group_id=102748](http://sourceforge.net/project/showfiles.php?group_id=102748)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP text replacment help’ is closed to new replies.

 * 5 replies
 * 5 participants
 * Last reply from: [billh](https://wordpress.org/support/users/billh/)
 * Last activity: [20 years, 8 months ago](https://wordpress.org/support/topic/php-text-replacment-help/#post-258581)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
