“Tatatata!”
You said wanted to search the “source,” didn’t ya? ;)
To do what you want would require going direct to the database. If you access yours using a tool like phpMyAdmin, the interface makes it fairly easy to search a specific field in a table. Search and replace is a little more complicated, though. For example, when I swapped out <br>
for <br />
in my older posts, I used this SQL query statement:
UPDATE wp_posts SET post_content = REPLACE(post_content, '<br>', '<br />');
The MySQL resource page on REPLACE:
http://dev.mysql.com/doc/mysql/en/replace.html
EDIT: Forgot to note that it’s always a smart move to backup (i.e. export) your database before making any sort of changes to it. Better safe than…you know.
Kafkaesqui,
What I’m looking for is something practical, even easy to revert and without dealing with MySQL.
The only other way is to export your database, open the file in a decent editor, run a search/replace the import the result.
… need to find and replace a given tag…
It might also depend on what kind of tag?
Actually need to replace a
by
<br clear=”left” />
and a
” />-
by
” align=”left” hspace=”5″/>-
ignoring spaces.
Will try the procedure suggested by Podz. Hopping for the best and planning for the worse.
Just remember whatever way you go, you’ll be dealing with MySQL to one degree or another. Really no way around it (if you know what I mean).
Wow…what does happen when you search for ‘search’ – why do I get a css file?
SECURITY GLITCH?!
“SECURITY GLITCH?!”
If our passwords were hiding in that file, I’d agree. But you’re just dropped into a css file. Hardly a breach, but definitely a bug.
“Just remember whatever way you go, you’ll be dealing with MySQL ”
I did test both methods. Whew! No problem, but it was just a test. Will wait until weekend to fight that battle. Still I wish some sort of coded source search.
“SECURITY GLITCH?!”
I thought it was an Easter egg 😉 Where is my prize?