Have Camera Will Travel - Reviews & Tips HomepageHave Camera Will Travel - Reviews & Tips

David Coleman Photography

  • Reviews & Tips
  • GoPro
  • Lightroom
  • Places
  • Photos
  • Reviews
    • Nikon
    • Sony
    • Fujifilm
    • Ricoh
    • Cameras
    • Lenses
    • Sample Images
    • Travel Tripods
    • Adventure Cameras
    • 360°
  • GoPro
  • Memory Cards
  • Flash
  • Travel Tripods
  • Books
  • Social Media
    • Facebook
    • Instagram
    • YouTube
    • Twitter

Search and Replace Plugins for WordPress

Whether you're moving from HTTP to HTTPS, moving a site to a new domain, or updating links, there are times you might need site-wide search and replace to speed things up. Here are some options for Wordpress.

Categories: Gear, Wordpress for Photographers

Last updated about 4 months ago // Originally published about 4 years ago

Whether you’ve moved your site and need to update your internal links, or if you’ve made some other change that affects text strings in many places across your website, doing sitewide search and replace can save an enormous amount of time compared to changing each instance manually.

As sites get more established, it can become a pretty fundamental housekeeping chore. Sites gets moved from HTTP to HTTPS; posts gets reorganized; links get broken. For all of those tasks, a search and replace plugin or script can come in very handy indeed. It’s something I find myself using on a nearly daily basis.

Here’s a rundown of some of the better options for search and replace across a WordPress site, whether it’s a simple single site or a more complicated multisite network. Each has its advantages.

Backup First

All of these should be used with a great deal of caution, because you really can royally mess up your site–and perhaps knock it offline–if you’re not careful. Always, always, make a backup of your database first and be prepared to restore the backup if something goes pear shaped. Some of these plugins include a function to create a backup copy of your database.

Better Search and Replace

Search and Replace Plugins for Wordpress

I like this one as a simple and safe option. It’s developed by Delicious Brains, who also make a fantastic site migration plugin that has become my go-to tool for that chore.

Something I particularly like about this one is that when using in a multisite setup, if you access it through an individual subsite, you can only search and replace through that subsite. I often find that I only want to update links or correct text in a single subsite. The way this works greatly reduces the risk of causing issues with other subsites. That said, there is a simple way to search and replace across the whole network if that’s what you want to do–just access it through the root site of the network. (On multisite, it can only be activated at the network level, but you can then access the search and replace functions under each subsite (Tools > Better Search and Replace).)

I also find it works well with large databases without timing out.

The standard version is free and can be downloaded from the WordPress plugin repository. There’s also a paid Pro upgrade that adds some extra features, but in many instances the free version will meet your needs.

Search and Replace

Search and Replace Plugins for Wordpress

One of the oldest and most reliable of the search and replace plugins, this one, simply called Search and Replace, works well. For a while, I found that Better Search and Replace offered improved features and functionality, but improvements have since been made to this one to the point that there’s really not much to choose between them anymore.

One thing I like about this one is that it lists each change explicitly. That is available in a paid Pro upgrade to Better Search Replace but isn’t in the free Better Search and Replace plugin. But it’s included in the regular Search and Replace plugin here.

If you find that your search and replace function is timing out–something I used to run into frequently with this plugin–try Better Search and Replace above.

The Search and Replace plugin is free and you can download it from the WordPress plugin repository.

Search Regex

Search and Replace Plugins for Wordpress

One thing this offers that not all of search and replace plugins for WordPress offer is regex part. If you’re new to regular expressions, or regex, it’s an incredibly powerful way to find and manipulate data. It can also create a mess if you get a single character out of place, so dipping your toe in with your WordPress database isn’t the ideal place to start. You can find more about it here.

So this plugin doesn’t just do direct string replacement–you can also have it match patterns with regular expressions.

It’s free, and you can download it here.

The Scan and Replace Script

Search and Replace Plugins for Wordpress

Search Replace DB isn’t a plugin, as such. It actually runs separately from your WordPress site as a PHP script.

And that’s where it’s real power lies–it can work agnostically and directly with the database, not from within the CMS running on that database.

That gives it a lot of power. That’s both good and (potentially) bad. It means that pretty much any search and replace task you have in mind can be accomplished. But it also means that you can royally screw up your database if the syntax isn’t just perfect.

Do remember to delete the files and folder when you’ve finished, because leaving it live is an invitation for anyone out there to interact directly with your database.

It’s free. You can download it here.

Edit the Database Directly

It is, of course, entirely possible to edit the database directly and that can give you maximum control and flexibility. If you’re comfortable doing that, great, in which case you’re probably not reading this in the first place. If you’re not comfortable doing it, it’s probably best to use one of the methods above.

Live Find and Replace

Search and Replace Plugins for Wordpress

This plugin, Real-Time Find and Replace, is different to the others here. All of the others are for searching and replacing information in the WordPress database. This one acts as a filter of your public-facing site, between the database and the reader. From that position, it can replace text on the fly before it’s displayed to the user but without actually modifying the database information.

There are a number of different ways this might be useful, but one that’s particularly relevant to the kinds of problem-solving that these other search and replace plugins are aiming at is that it can be used as a safe interim step in case you need something changed quickly but aren’t ready to mess with the underlying database. Or maybe if you want to test variations. You can replace straight text strings or with regex and it doesn’t mess with the database so is easily reversible or correctible.

It’s an interesting option that does things a bit differently. There’s a free version with the basic functionality and paid pro version with extended features. You can find the free version in the WordPress repository.

By David Coleman
Instagram: @havecamerawilltraveldc

Last updated on December 20, 2020

Categories: Gear, Wordpress for Photographers

I may earn a commission for purchases using links on this page. Learn more.

News & Deals

With the holidays fast approaching, there’s some great deals on photography gear and services available. I’ve put together a roundup of Black Friday and Cyber Monday 2020 Photography Deals. It’s a running list as new deals are announced, so be sure to check back.

Canon announces new EOS Rebel T8i DSLR. Canon has announced their new T8i DSLR. 24MP APS-C cropped CMOS sensor, 4K24 video, and updated image processing and detection systems. It’s available for preorder from B&H Photo.

New Firmware for the Ricoh GR III. Ricoh has release firmware v1.31 for the GR III. Release notes are: “Corrected — When shooting with the multiple exposure, in rare cases the live view may not display correctly. Improved stability for general performance.” You can download it here.

New Canon 1D X Mark III Pro DSLR Announced. Canon has announced their new flagship model of pro DSLR, the 1D X Mark III. They’re sticking with a 20.1MP CMOS sensor, but it’s a new and improved version and boasts an incredible native ISO range of ISO 100 to ISO 102400 and an extended range that goes up to a jaw-dropping ISO 819200. With revamped autofocus, a new image processor, and all sorts of other bells and whistles, it’s no wonder that Canon is billing it as “The Ultimate EOS.”

New Manfrotto Pro Rugged Memory Cards. Manfrotto, an Italian probably best known for their tripods and studio accessories, has launched a new Pro Rugged range of high-end SD, microSD, and CompactFlash cards. While they don’t have a huge selection of sizes and speeds, the cards are aiming for very fast cards that can put up with rugged demands. For instance, they claim that their V90 rated SD cards can withstand three times the force (20kg / 45 lbs) of a regular SD card. I’ve ordered some to run through my speed tests.

New Sony Alpha a7 firmware released. A firmware update for the Sony a7R IV now lets you control external Sony flashes from the camera’s own menu system. Up to 15 flashes in five groups can be controlled via the camera. It also applies to the a7R III and a7 III.

Kinsta Wordpress Managed Hosting

Questions & Comments Cancel reply

You have to agree to the comment policy.

About Me

I take photos. I travel. I do it for a living. Seven continents. Dozens of countries. Up mountains. Under water. And a bunch of places in between.

Get in Touch

Newsletter

© 2009–2021 David Coleman · Have Camera Will Travel LLC · all rights reserved


Photos by David Coleman. Please contact me for licensing images.
All images are registered with the U.S. Copyright Office.


Privacy & Disclosure · Cookie Declaration · Disclaimer · Terms of Service · Copyright · Contact


XML Sitemap