Search and replace in MySQL
-
I’d appreciate some help with a MySQL search and replace. I’m assuming this is the best way to tackle this, but if I’m wrong then please let me know.
I have a heap of photos on my site and I’d like to change the current alt=”” and title=”” with “post title + some text”.
eg If the post title is “Flowers” I want to be able to change whatever is currently in alt=”XYZ.jpg” and title=”XYZ” to read alt=”Flowers – photo by me” and title=”Flowers – photo by me”
All photos are in category ‘photos’. All posts are wp-posts and I also have thumbnail versions of the same photos in excerpts.
I have one other issue ??
A few posts have 3 photos in them. If these posts can be excluded fine, if not then I can fix any mess that might occur manually.
Many thanks
- The topic ‘Search and replace in MySQL’ is closed to new replies.