Title: Replacing text in posts?
Last modified: August 19, 2016

---

# Replacing text in posts?

 *  Resolved [katocan](https://wordpress.org/support/users/katocan/)
 * (@katocan)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/replacing-text-in-posts/)
 * I’ve already done the code from a blank PHP document so all I need to do is implement
   the code into WP.
 * What I need to do is get the post so that I can put it into preg_replace() and
   replace a string. What file and function would I find the information for posts.
 * Thanks for any help!

Viewing 1 replies (of 1 total)

 *  Thread Starter [katocan](https://wordpress.org/support/users/katocan/)
 * (@katocan)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/replacing-text-in-posts/#post-798535)
 * Problem solved.

Viewing 1 replies (of 1 total)

The topic ‘Replacing text in posts?’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [post](https://wordpress.org/support/topic-tag/post/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [preg_replace](https://wordpress.org/support/topic-tag/preg_replace/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [katocan](https://wordpress.org/support/users/katocan/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/replacing-text-in-posts/#post-798535)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
