The WordPress editor autosaves your work and stores a revision history for each page and post on your site. This guide will show you how to restore an earlier version of a page or post.
In this guide
While writing and editing, your changes are automatically saved to your local device every 15 seconds and online about once per minute. At the top-right of the editing screen, you’ll see the notification move from “Save Draft” to “Autosaving” to “Saved“:
If you have not yet published the page or post, you can save it manually by clicking on the “Save Draft” link at the top of the page:
If you are editing a post or page that has already been published, autosave continues to work but will not overwrite the published content. The changes will not be displayed on the site until you click the “Save” button at the top of the screen:
If you go offline while editing or accidentally navigate away from a post/page while working on it, WordPress.com will save your post to your web browser’s local storage. When you return to the editor, you will see a note that says “There is an autosave of this post that is more recent than the version below.“
Click the X icon to return to the draft as-is, or click “View the autosave” to restore the most recent autosave. You can also browse the revisions to restore an earlier version of your content.
A revision is not stored for every autosave; it is just the last one the system captured. A revision is stored when you save manually or click the “Save” or “Publish” button.
When you save a draft manually or click the “Save” button, a revision is created. Revisions allow you to view the recent changes and revert to an earlier version if necessary.
To view the saved revisions of a page or post:
- Visit your dashboard.
- Click on Pages on Posts (or navigate to Editor → Templates for template revisions).
- Click on the content you wish to edit.
- Open the settings sidebar.
If you do not have the sidebar on the right, click the Settings icon in the top right corner to bring up the settings. This icon looks like a square with two uneven columns:
- Click the number next to the Revisions label.
- If this option is absent, there are no saved revisions to view yet. Check these other tips to recover lost content.
Depending on your user role, the following revisions can be accessed:
- Administrators and editors can access all available revisions.
- Authors can see revisions for any posts they have authored.
- Contributors can see revisions on their drafts only.
The next section will cover how to compare and restore your content revisions.
When viewing the revisions for a page or post, the following information will help you identify the correct revision to restore:
In the Default View, the content is shown on the left side of the revisions screen. Newly added content is highlighted, while content deleted in that revision has a line crossed through it:
On the right is a list of each saved revision for the page or post you’re viewing. The revisions list shows the following information:
- The date and time the revision was saved.
- The name of the user who made the changes.
- The number of changes made. A green plus sign indicates content that’s been added, while a red minus sign indicates content that’s been deleted. For example, “+11 -2” indicates 11 instances of added content and 2 instances of deleted content.
You can select two different views when browsing revisions:
- Unified: Click the “Unified” button to view the changes made on the selected revision only.
- Split: Click the “Split” button to view the revision compared with the revision immediately previous to it:
Once you have identified your revision, you can use the following steps to restore it.
- Visit your dashboard.
- Navigate to Pages or Posts.
- Click on the page or post you wish to edit.
- Open the settings sidebar.
- Click the number next to the Revisions label.
- Select a revision you want to restore and click the “Load” button.
The revision will load in the page/post editor. You can make additional changes or click the “Save” button to publish the revised version of the page/post.
If you find the revision difficult to read (since it displays in HTML code instead of the rendered content), you can click the “Load” button to load the revision in the editor. Then, you can review the content in the editor and decide if it’s the correct version. If not, return to the revisions and choose a different version.
If you want to restore a specific part of a revision without replacing the entire content, you can copy just the content you wish to restore. Follow these steps:
- View the revisions as described above.
- Highlight the part of the revision you want to recover.
- Right-click and select Copy or use cmd+c on Mac or ctrl+c on PC.
- Click Cancel to close the Revisions window without loading the entire revision.
- Insert a Custom HTML block in the position you want to add the copied content.
- Right-click and select Paste or use cmd+v on Mac or ctrl+v on PC to paste the part of the revision into the Custom HTML block.
- Click the ellipses (three dots) in the Custom HTML block toolbar and select Convert to blocks.
If you ever lose content for a post or page you were working on and you cannot locate the content in the revisions, check these other common reasons why content can be lost:
- Check the trash to ensure the post/page wasn’t accidentally deleted.
- Check your other drafts in both Posts and Pages to ensure you didn’t start writing a post as a page or vice versa.
- Ensure you don’t have another post or page editor tab open. Having the editor open in multiple browser windows/tabs can cause the autosave to trigger in one tab while you’re working in a different one.
- Ensure that autosave is working and the post says Saved in the top right every few seconds after making changes. If not, manually click the “Save Draft” button to ensure the post or page is saving, then try clearing your browser’s cache.
- If you’re writing a very long post within the editor, it’s a great idea to keep a backup by copying and pasting it onto your local computer, such as in a Word or text document.