By raghumstpl
Hi all i have a website with 1k+ pages and i have schema markup code for reviews and FAQ’s, so need help in knowing how to update code for all pages in one go as updating to all pages manually is similar to impossible, let me know is there any way out to achieve the results and my website is built on word-press, awaiting for earliest reply… Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
For updating a lot of references in your database, you could either use the wp-cli tool or the following script:
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
If you decide to go with the wp-cli tool, the command that you would need to use would look something like this:
wp search-replace 'OLD STRING' 'NEW STRING'
It is best to run that command from within the document root directory so that the tool could pick up the database details from your wp-config file.
Note that this is a really dangerous operation as it can mess up your whole database in case anything goes wrong so it is very important to always make a backup of your database before proceeding with the operation.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.