Search for keywords, like "PayPal", "Recurring Donations", and more.

Documentation / Resources / Site Redesigns Without Donation Data Loss

Site Redesigns Without Donation Data Loss

Site redesigns take time, so many designers use a staging site or test site to get the new site ready without disturbing the live site. Moving your new design from staging to live without losing the new donations on the live site can be a challenge. This document walks you through how to prevent data loss when pushing your site live.

Before we jump in, it’s important to understand why this process is problematic. Because WordPress stores all your various types of posts with a shared sequential ID ordering, any new comments, pages, posts, or donations get new ID numbers. The process of migrating can mean that some IDs end up referencing the wrong post IDs.

For that reason, it is not recommended to migrate just your GiveWP donations or the GiveWP tables in your WordPress database.

Also keep in mind that data migration and site updates are not covered by our priority support. This documentation is provided only as reference material. Please consult a website professional if you are unsure of how to do any of this.

What to do if you have not yet started your redesign

If you have not yet started the redesign, and it can be performed relatively quickly, here’s a procedure to maintain data integrity:

  1. Place the live site in maintenance mode. There are many ways to do this, including free plugins on the WordPress Plugin Directory. Our Head of Support uses this snippet.
  2. Migrate the entire WordPress Database and files to your live staging environment.
  3. Make the changes/enhancements you want on the staging site.
  4. Migrate the entire WP database and files from staging back to your live production environment.
  5. Make a donation while in Test Mode to ensure the migration did not produce any problems with accepting donations.
  6. Do additional testing throughout your site to ensure all is well.
  7. Disable “Test Mode” in GiveWP and take your site out of Maintenance mode.

What to do if your staging site is already updated and you have new live donations on the live site

If your live staging site is already updated and ready to deploy then the process is a little more complex. Our suggestion is to use a local environment to help merge the staging database with your live database before deploying to live. Here’s what that might look like:

  1. Place the live site (the one with current and accurate donation data) in Maintenance mode.
  2. Migrate all the data from the live site to a new local environment. We suggest using LocalWP for the local environment and WP Migrate, Duplicator, or All-in-One WP Migration for the actual migration.
  3. On your staging environment (where you have the new design), export only the posts/pages/menus/etc that have changed using the built in WordPress exporter tools. This will download an XML file.
  4. Import those posts/pages/menus/etc to your local environment. Confirm all your pages, posts, menus look correct on local. This step will also require adding the new theme and any plugins from the staging environment. Add those manually.
  5. Make sure the local environment is still in maintenance mode, and push the database and files—the entire site—from your local environment to your live environment.
  6. Test your live site extensively to ensure everything works well while still in maintenance mode.
  7. Disable GiveWP’s Test Mode and disable your live site’s maintenance mode.

Need More Assistance?

Even experienced WordPress website builders and designers can struggle with this process. If you need assistance in doing this well, we suggest contacting Codeable.io

Last updated 1 year ago

Start Fundraising Better Today!

Get GiveWP Today
GiveWP Plans

Give Fundraising Newsletter

The Give Fundraising Newsletter will help you navigate the world of online fundraising like a pro. Each week we send out fundraising advice, Give LIVE announcements, and exclusive offers to our newsletter subscribers.