Question

How to update Schema markup code to all pages ?

Posted July 23, 2019 263 views
WordPress

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.

×
1 answer

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

Submit an Answer