Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mysql query to insert code into image description filled in wordpress

Discussion in 'Troubleshooting & How-To's' started by gagandeep, Oct 26, 2017.

  1. gagandeep

    New Member

    Joined:
    Oct 26, 2017
    Messages:
    1
    Likes Received:
    0
    I want to insert <--noads--> tag in my wordpress images description. I have lot of images in media gallery, so I want to get a fast way to add this code with existing description of the images, and I think this is the only way to do this. I'm new to MySQL so can you please provide me code to insert this tag in all images description without loosing already entered data.

    i tried :

    update wp_posts set post_content =
    replace(post_content,'Text to find','text to replace with');
    but this code is for find and replace, im new to mysql so unable to modify this code to add text.
     
    #1
  2. Elliot Gonzales

    New Member

    Joined:
    Oct 2, 2017
    Messages:
    4
    Likes Received:
    0
    #2

Share This Page

Web Hosting