Restore a Page to a Previous Date in WordPress


restore-wordpress-updraft

It can happen so quickly. You have a page you’ve been working on in WordPress and by some freak of nature, or more likely the nature of working with technology, the page suddenly formats itself into something nowhere near the way you had it. Or you clicked Publish, not realizing the entire upper half of all your hard work disappeared. Not all is lost if you’ve saved your work previously and we will show how you can restore it.

WordPress saves all of your revisions so if you have an epic fail and need to go back to what you had previously, you can do that in the edit mode of your page. In the page toolbar, scroll down and click on “revision”. The history of all the revisions you’ve made on that page will be revealed and you can restore your page to a previous version.

I might have said not all is lost but are you lost on how to perform this magic trick? If you are new to working with WordPress, no worries. I’m going to show you with screenshots where everything is and what to do. First of all, we are going to start with the basics.

What is the WordPress Revision History?

The WordPress revision history is a record of every edit you have made from the original page you created. Every time you open the page in edit mode and then hit save draft or publish, WordPress tracks what has been done to the page and keeps a history of it. It’s a handy feature that allows you to revert your pages back to an earlier version. If you are trying to reorganize or add new features to a page, and it messes up the perfection you had before, this is the tool you would use to bring it back to its previous glory.

Where to Find the Revision History in WordPress

If you are unhappy with the new state of your page, go back into edit mode on your page.

In edit mode, over on the righthand side where the Page toolbar is, scroll down until you see “revisions” – there’s usually a number in front of it once you’ve saved it a few times. In this case, my page at the time of this screenshot has only 2 revisions.

How to use the WordPress Revision History

When you’ve found “Revisions” on the Page toolbar, click on it. You will find yourself back on the dashboard with the history of your revisions revealed to you.

To search for the revision you want, move the little arrow bar on the top of this section and it will show what changes you have made before you saved each time. Once you know which revision you want to revert to, click on the “Restore This Revision” and your previous version of that page will be restored.

Above the arrow bar, you have a couple of options. Perhaps you don’t know which revision you want. On the right you can compare any two revisions. On the left, once you pick which revision you do want, you can go back to the editor and edit your page again or save or publish if it’s the way you want it. At the time of this screenshot, I have 4 revisions. So you can see on the bar where each revision is located. Where the arrow is, that is revision 4. Where the bar starts is 1. The lines in the middle are 2 and 3.

If you restored a previous version of the page and it wasn’t the version you were looking for, you will have an added revision to the list. You can go back and change it again so you haven’t lost anything at all. On my page while working on this post, I added a sentence, saved the draft, went back and restored the version I had before. In my earlier screenshot of the page toolbar I had 2 revisions. It has changed to 4.

Autosave in the Revision History

There’s a difference with autosave vs revisions. When the page autosaves, it rewrites over what was autosaved earlier during that edit session. Autosave is what will save your work if your computer crashes or when it decides to restart with the most inconvenient update while you’re editing. Sometimes you’ll be notified that there is an autosave revision when you head back to edit your page. If that is not the case, here is what it will look like in your revision history if your version of WordPress editor shows you autosaves. This is a different WordPress editor than what I used in earlier screenshots. This revision history was at the bottom of the page I was editing.

When I click on the date of the autosave, it sends me to that version of my page in the revision history. Here is what the top of the screen will look like. You still have the option to compare this autosave revision with any of the others in your history.

With the exception of the two screenshots above, the rest of the screenshots in this article I used the Gutenberg editor version of WordPress. When using this editor, you can’t see autosaves in the revision history.
No matter what WordPress editor you use, don’t depend on the autosaves to rescue your work. Remember to manually save your work often and your revision history will be there for you when you need it most.

In Summary

Now that you have the basics on how to restore previous versions of your page, go ahead and play around with changing up formats, moving and resizing media, or make whatever changes you want. You have the knowledge and the skills to return to a version of your page that looked the best or had the features you were looking for.

Aaron Day

Professionally designing and building websites since 2002, I was an early adopter of WordPress and continue to build engaging WP solutions on a daily basis. I'm an owner of a web development agency and we manage over 400 WordPress sites - so most of what you'll find here on this site, we've used in practice.

Related Articles