How to update Schema markup code to all pages ?

July 23, 2019 231 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

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!

Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!