Question

How to update Schema markup code to all pages ?

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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