In the past I occationally used this sql query to update links in post_content:

    update wp_posts set post_content = replace(post_content,'domain.org/Maries','maries.no');

I wonder if I could use a similar query to delete all images from the code in post_content, by using something like:


Or probably better, with a regular expression?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.