How to update Schema markup code to all pages ?

Posted July 23, 2019 497 views

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


For updating a lot of references in your database, you could either use the wp-cli tool or the following script:

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!