I wish to find and replace a certain keyword across a major site.
I would normally use something like
UPDATE wp_posts
SET post_content = REPLACE (post_content, 'Item to replace here', 'Replacement text here');
However, I don’t want the update to be across the entire site, I wish to limit it to only one category.
Can anyone tell me how to achieve this?
UPDATE: To be more precise the query should look
Note: before you update anything:
1) you can check what posts will be affected by issuing
2) make sure you have a solid backup of your wordpress database.