This approach is perfect for individuals who lack programming expertise. By utilizing a plugin, you can perform search and replace operations as frequently as required, all without having to handle a single line of code.
- Log into your WordPress dashboard.
- Navigate to Plugins > Add New.
- Search for Better Search Replace plugin.
- Click on Install Now and Activate them.
5. After that, navigate to Tools and choose Better Search Replace.
6. Choose Search/Replace tab and enter all the details.
- Search for should have the phrase or word that you want to change.
- Replace with should hold the phrase or word that will replace the original.
- Select tables function lets you choose which tables in your database you want to modify.
- Log into your CPanel account.
- Navigate to Databases > phpMyAdmin.
3. Choose your database and navigate to the SQL tab.
4. Add following code:
- update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, 'Text to search, 'Text to replace it with');
Replace the placeholder with proper information.
- TABLE_NAME: name of the table you want to modify.
- FIELD_NAME: name of the field/column where the targeted data resides.
- ‘Text to search’ contains the word or phrase that you want to change.
- ‘Text to replace it with’ contains the word or phrase that will replace the previous text
Leave a comment: