Software: Search and Replace Wordpress Plugin (1.1)
This is a plugin for Wordpress to allow you to search and replace text across all your posts.
This plugin is for Wordpress 1.5 or better (including 2.0).
It is uses SQL replace so it’s fast but not very flexible.
Just download the zip, extract the searchandreplace.php file and place it in your wp-content/plugins and then in the wp-admin plugin interface active it.
You will then have a new panel in your “Manage” section called “Search and Replace”.
German langauge version available. Supplied by Frank
Persian language version avaliable. Supplied by Gonahkar
History
Version 1.1: 4th January 2006
Search and replace for comments and comment authors from Gonahkar added. Tested on Wordpress 2.0.
Version 1: 23rd March 2005
First version




Hi Mark and thanks for your help–here’s a sample of the wackiness–it sounds like Anatomy of a Blog Move used the S&R plugin to fix a similar problem, so I’m terribly envious!–
“Merci ?ɬ� Lucinda, I hum while I pick dried rosemary needles from the keyboard?��Ǩ���Eloise’s afternoon effort at reducing the one to the many. And then type vigorously, seething, energized with angry?��Ǩ���and why? Because…” et cetera.
(Where the ???s were em-dashes.) I guess this can also be chalked up to “Unicode rogueness” but alas I’m having to go into each entry and change by hand. Such is life! Thanks for trying to troubleshoot anyway….
This plugin is simply great! Saved me many hours doing the search and replace. Thanks.
Hi unnarrator,
That sounds very strange. Could you do an export of your database (using the database plugin) and have a look at a post there? If possible, could you send me (or post a sample of) a snippet of a post from the database?
Sounds like you may have to do it manually. The plugin just does an SQL update command.
Worked perfectly for my purposes…. Thanks a lot!
Maybe a better answer to your question is: the weird marks are there both inside the WP editor *and* on the pages themselves.
Thanks for responding, Mark—when I downloaded my SQL db from one host, search-and-replaced all the URLs and so forth, and uploaded to the new host, all the diacriticals were inexplicably changed (and I use a lot of French in my posts…).
I could go into every entry and edit them, which works, and I’ve done about 50 of them; I just don’t want to do this for all the pages on the site, cos I’m lazy. :o)
Hope this makes sense. Example page at:
http://theunreliablenarrator.net/2006/07/15/tiny-times-goofed/
Hi unnarrator, I’m not sure I can. I would have loved to be able to update the plugin to report what it changed, but it’s a rather dumb plugin and all it does is an SQL replace which doesn’t support that kind of functionality.
As for the weird characters, where do they come up? Is it on a webpage or when you edit the entry? Is there a difference between the two copies?
I’m so sad I can’t get this plugin to work for me! Recently I changed hosts, and when I did all my ellipses (…) were replaced with “?��Ǩ��” and all my em-dashes (—) were replaced with “?��Ǩ��?”–I had high hopes that this plugin would correct them for me, but though it says “searching…replaced!” all the weird characters are left in there…anyone know what all this is about? I sure don’t want to download my db, do the s&r in there, only to upload it again and discover that it’s happened all over again…ideas?
Hi, this plugin works great!!!!!!
kisses!
Worked like a charm — Thanks!
http://www.striderweb.com/blog/229