WordPress.org

Ready to get started?Download WordPress

Forums

Replacing words in many posts (5 posts)

  1. xhan104
    Member
    Posted 7 years ago #

    is there any way to go through lots of posts and replace words with something else?

  2. dremation
    Member
    Posted 7 years ago #

    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.

  3. Chris_K
    Member
    Posted 7 years ago #

    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");

  4. xhan104
    Member
    Posted 7 years ago #

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

  5. xhan104
    Member
    Posted 7 years ago #

    dont worry - I did it the long way!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags