W
W
webpixel2015-09-29 22:08:30
PHP
webpixel, 2015-09-29 22:08:30

How to quickly find and replace text in WordPress database?

Hello connoisseurs! Please advise the fastest and easiest way to find and replace the desired text in WordPress posts? Most likely, the easiest way to do this is through the database. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Sysoletin, 2015-09-29
@webpixel

UPDATE wp_posts SET post_content = REPLACE(post_content, "google", "yandex");

will replace all occurrences of the string "google" with "yandex".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question