Remove image with url all posts wordpress
2016-01-08, 09:54 PM,
#1
Hello, i've one wordpress website with 2000+ posts, and all posts have download button with link to file locker. I want to remove this button (and the link of course) in all posts, but I can't do it manually it's too many posts, what can I do?
Reply
2016-01-08, 10:11 PM,
#2
Somehow create a script to do it for you, or get a freelancer too do to do it for you, I'm sure you'll find someone cheap.
Reply
2016-01-22, 05:09 AM,
#3
If you're using a hosting, it will surely getting into trouble with such 2k+ posts, although in case the nodes are easily parsed, assuming using DOM, like all buttons has same id. Best bet to export all, do process locally, import back as just overwrite.
Reply
2016-01-22, 06:13 PM,
#4
Here's how you can do it
First of all back up your database, just in case something goes wrong.
Go to plugins and search for "Better Search Replace" (without quotes). Install and activate this plugin.

Find the exact html code you are using for the button. Go to your posts, click edit, switch the editor to text mode.
It should look similar to this:
< ahref="link to locker">< img src="image url" /></a>

Now go to Tools >>> Better Search Replace
In "search for" field type the exact html code you are using for the button.
Leave "replace with" field blank.
Uncheck "run as dry run".
Click "Run Search/Replace" button.
Done!

And once again - don't forget to back up DB before doing the steps above
Latest Thanks - View all

tbpi007(2016-01-30 07:37 AM) Twizze(2016-01-23 05:38 PM) Mix2003_2012(2016-01-22 06:53 PM) pepeneo(2016-01-22 06:15 PM) 
Reply
2016-01-22, 06:53 PM,
#5
(2016-01-22, 06:13 PM)SNP Wrote: Here's how you can do it
First of all back up your database, just in case something goes wrong.
Go to plugins and search for "Better Search Replace" (without quotes). Install and activate this plugin.

Find the exact html code you are using for the button. Go to your posts, click edit, switch the editor to text mode.
It should look similar to this:
< ahref="link to locker">< img src="image url" /></a>

Now go to Tools >>> Better Search Replace
In "search for" field type the exact html code you are using for the button.
Leave "replace with" field blank.
Uncheck "run as dry run".
Click "Run Search/Replace" button.
Done!

And once again - don't forget to back up DB before doing the steps above
Amazing solution it works, thank you!
Reply
2016-01-22, 06:57 PM,
#6
(2016-01-22, 06:53 PM)Jyciap11 Wrote:
(2016-01-22, 06:13 PM)SNP Wrote: Here's how you can do it
First of all back up your database, just in case something goes wrong.
Go to plugins and search for "Better Search Replace" (without quotes). Install and activate this plugin.

Find the exact html code you are using for the button. Go to your posts, click edit, switch the editor to text mode.
It should look similar to this:
< ahref="link to locker">< img src="image url" /></a>

Now go to Tools >>> Better Search Replace
In "search for" field type the exact html code you are using for the button.
Leave "replace with" field blank.
Uncheck "run as dry run".
Click "Run Search/Replace" button.
Done!

And once again - don't forget to back up DB before doing the steps above
Amazing solution it works, thank you!

Did you end up successfully removing the link and button from all 2000+ posts without anything going wrong on the site?
Reply
2016-01-22, 09:04 PM,
#7
(2016-01-22, 06:57 PM)Beta Blocker Wrote:
(2016-01-22, 06:53 PM)Jyciap11 Wrote:
(2016-01-22, 06:13 PM)SNP Wrote: Here's how you can do it
First of all back up your database, just in case something goes wrong.
Go to plugins and search for "Better Search Replace" (without quotes). Install and activate this plugin.

Find the exact html code you are using for the button. Go to your posts, click edit, switch the editor to text mode.
It should look similar to this:
< ahref="link to locker">< img src="image url" /></a>

Now go to Tools >>> Better Search Replace
In "search for" field type the exact html code you are using for the button.
Leave "replace with" field blank.
Uncheck "run as dry run".
Click "Run Search/Replace" button.
Done!

And once again - don't forget to back up DB before doing the steps above
Amazing solution it works, thank you!

Did you end up successfully removing the link and button from all 2000+ posts without anything going wrong on the site?
Yes, this plugin remove and replace all html code is amazing plugin.
Latest Thanks - View all

Beta Blocker(2016-01-22 09:16 PM) 
Reply
2016-01-28, 12:46 PM,
#8
You install " Remove Link URL ". This plugin removes the Link URL that is enabled by default when images are uploaded to your WordPress blog.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Need a loading progress bar for wordpress! YoungArt 6 185 2017-08-26, 06:01 PM
Last Post: YoungArt
  Premium URL Shortener - v4.2 - HOTFIX - CodeCanyon M!st3r XX 28 5,501 2017-08-19, 08:27 AM
Last Post: dikaFp
  ANNOUNCEMENT How To Protect And Secure Your WordPress Websites For Free [HawkEye Guide] HawkEye 22 5,716 2017-07-03, 03:45 AM
Last Post: alexoron
  [HELP NEEDED] Embedding P*rn videos to my adult WordPress Site nudes 15 1,786 2017-06-16, 02:09 PM
Last Post: tropicallad
  How to remove the slider budiman 2 361 2017-04-20, 07:22 PM
Last Post: EctaPrime




About Us | Contact Us | CPA Elites | Advertise | Stats | Staff Team

© 2013-2017 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top