Find and replace in sql with if, Change upload directory respect to post type

by Naga Raj   Last Updated May 05, 2018 09:08 AM

Is it possible to make a query like that so I get the desired result in MySQL?

I want to find and replace values: under table post_meta and in post_value ".../folder/..." to "..../events/...." if parent_post = = 342. Can any one help me?

Related Questions

WordPress in a sub directory but not images

Updated November 23, 2016 08:03 AM

Change upload directory for PDF files

Updated January 31, 2017 14:03 PM