WordPress.org

Support

Support » How-To and Troubleshooting » Replacing words in many posts

Replacing words in many posts

Viewing 4 replies - 1 through 4 (of 4 total)
  • you could write a small script within your index.php to replace words with others. Setup an array of words you DONT want..then use the replace() scripting function to replace it with what you want. ex(****,bleep,&#%$*%)

    If you want a ‘smart’ replace then I’d suggest writing a plugin to replace ass with a** and such. Im sure theres a plugin for this, just check out the codex.

    Like to live dangerously? Have access to your DB? know how to back it up before trying anything I advise?!?

    UPDATE table
    SET field =
    REPLACE(
    field,
    "oldWord",
    "newWord");

    is there any way to make lots of posts private instead?

    dont worry – I did it the long way!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replacing words in many posts’ is closed to new replies.