How to Use WordPress Revisions: 7 Steps to Restore an Earlier Version (2026)

ZAKARIAE LAHBABI
36 Min Read
A draft being revised by hand. Photo by Kristin Hardwick, CC0 1.0, via Wikimedia Commons.

What WordPress revisions are

A bad save is a familiar WordPress moment. A paragraph disappears during an edit, a heading is rewritten in a hurry, or an update replaces wording that took a long time to get right. WordPress revisions give you a way back, provided you know where the earlier versions are kept and what a restore will and will not undo.

WordPress revisions are saved copies of a post or a page. Each time you save a draft or update a published post, WordPress can keep a copy of that version. From the editor you can open the list of versions, move through them, see what changed, and restore the version you want. That is the whole job of the revisions screen, and for most site owners it is the fastest way to undo a single bad edit without rebuilding a post from scratch.

The short answer is this: open the post or page, open the Settings sidebar, click the number beside Revisions, use the slider to find the version you want, and click Restore. The rest of this guide explains each part of that answer, shows how to read the comparison screen, explains autosaves, and finishes with the one setting that controls how many WordPress revisions your site keeps.

Be clear about the boundary from the start. WordPress revisions are version history for one post or page. They are not a backup of your whole site, and they are not a substitute for one. If a post is deleted, if the database is damaged, or if a theme or plugin change breaks the site, the revisions list for a single post will not put the site back together. Keep a full backup as well, using the WordPress backup guide, and use WordPress revisions for what they do well: recovering an earlier version of the content of one post or page.

What WordPress revisions store

A revision holds the version of a post as it stood when it was saved. WordPress documentation presents the system as a way to look back at earlier saved versions and to see the changes between them, with added and removed material highlighted. That view lets you answer two questions after a bad edit: what did this post look like before, and which saved version should become the current version again?

The fields saved in a revision are, by default, the title, the content, and the excerpt. That list comes from the revision code itself, which names those three fields as the fields that can be versioned. It matters because a restore brings back those fields. If the only change you made was to the wording of the post, a restore is usually the right tool. If the change you regret was to something else — the featured image, a category assignment, a page template, or a setting — do not assume that restoring a revision will undo it. Check that item separately after the restore, and fix it directly if it is still wrong.

Revisions are kept in the same posts table as your posts, as child records of the post they belong to. That is why the number of WordPress revisions on a busy site is also a database question, not only an editing question. Every saved version adds a row. On a small site with a handful of posts, that rarely matters. On a site where pages are updated often, the rows add up, which is why the limit setting in Step 7 exists. The limit is a balance: keep enough history to recover from mistakes, and do not keep every version of every post for ever without thinking about it.

Revisions, autosaves, and backups compared

The three safety nets on a WordPress site are easy to confuse, because all three deal with earlier versions of content. They answer different questions, and only one of them recovers a whole site.

Safety net Created when What it brings back
WordPress revision You save, update, or publish a post or page The title, content, and excerpt of that post at the saved moment
Autosave The editor saves in the background while you edit Unsaved work from the current editing session, for one user
Full backup You or a plugin copies the site on a schedule Files and database rows for the whole site, for the retention period

A revision is a version you chose to save. An autosave protects work you have not saved yet, and only one autosave is kept per user for each post, with a newer autosave replacing the older one. A backup is the only one of the three that covers the whole site. Keep all three in their places: revisions for undoing edits, autosaves for recovering a crashed session, and backups for recovering the site.

Step 1: Open the post or page and find the WordPress revisions count

Start in the WordPress dashboard and open the post or page you want to check. Opening the revisions screen itself does not change the post. You are only looking until you choose Restore, so the first steps are safe to follow on a real post.

Open the Settings sidebar in the block editor. If the sidebar is closed, use the settings control in the top-right of the editor to show it. Select the Post tab for a post, or the Page tab for a page. Look for the Revisions row and the number beside it. That number is your entry point. Click the number to open the revisions screen.

If you do not see a Revisions row at all, do not assume the feature is broken. First check the simple causes: the post may not have been saved more than once yet, revisions may be switched off for the site, or the content type may not support revisions. The checks for those causes are covered in the frequently asked questions at the end of this guide, and the setting that switches revisions off is covered in Step 7. Do not change code or install a plugin to chase a missing Revisions row until you have checked those three causes.

The screen you see next depends on the WordPress version your site runs. Since WordPress 7.0, clicking the revision opens a new revisions screen inside the editor. If your site runs WordPress 6.9 or earlier, the same click opens the classic revisions screen. In WordPress 7.0 you can also open the classic screen from a link in the sidebar. Both screens do the same core job — show versions, show changes, restore a version — but they lay the job out differently, so the next steps describe both.

Step 2: Read the WordPress revisions list in the revisions screen

In the newer revisions screen, the saved versions are listed in the Revision panel. Each entry shows when that version was saved and who saved it, so you can narrow the search by time and by author before you read any content. Select a revision from the list to jump straight to that version, or use the slider at the top of the screen to move forward and backward through the versions in order.

Read the list slowly. The version you want is not always the newest one before the bad edit. If several people edit the same post, or if a post was saved several times in one session, the list can hold versions that look alike. Use the date and the author to pick the right neighbourhood first, then use the comparison view in Step 3 to confirm the wording before you restore anything. Restoring the wrong version is easy to undo — the version you replace stays in the list — but it still costs time and creates another saved version, so a careful first pass is worth it.

In the classic revisions screen, the same history is shown as a slider with Previous and Next controls. The principle is identical: move through the saved versions in order until the content on screen matches the version you want. Do not restore from the list alone without reading the comparison, because dates and authors tell you when a version was saved, not what it contains.

WordPress revisions created while editing a post at a keyboard
Editing is where WordPress revisions begin: each save can create a new version to compare later. Photo by Raimond Spekking, CC BY-SA 4.0, via Wikimedia Commons.

Step 3: Compare WordPress revisions with the slider and the colour markers

This is the step that prevents most restore mistakes. As you drag the slider, WordPress shows what changed between versions. Added material and removed material are highlighted, and small character changes inside a line get additional highlighting, so a small wording change is visible even inside a long paragraph.

In the newer revisions screen, the markers beside the scrollbar show where changes were made and how large they are. Click a marker to jump to that location in the content, which is useful when the change you are hunting for sits far down a long post. The colour meanings in the new screen are: added blocks in solid green, removed blocks in red with forward-slanting diagonal stripes, and modified blocks in yellow with backward-slanting diagonal stripes. A Show changes control on the left side of the slider toggles the coloured highlights on and off, so you can also read a version cleanly without the markings.

Read the comparison in both directions. First read the version you are considering restoring, to confirm it contains the wording you want. Then move one step forward, to the next version, and confirm what was lost or changed after it. That second look catches the common trap: the good version is restored, but a useful paragraph added after it disappears as well. If that paragraph matters, copy it out before you restore, then put it back into the restored version afterwards. A restore replaces the whole title, content, and excerpt with the old version, so anything added later that you want to keep must be saved separately first.

The classic revisions screen shows the comparison as a side-by-side view of the HTML version of the content. The layout is plainer than the newer screen, but the task is the same: drag the slider or use the Previous and Next buttons, read what was added and removed, and only restore when the version on screen is the one you intend.

Step 4: Compare any two WordPress revisions, not just neighbours

The slider on its own compares neighbouring versions as you move through them. Sometimes that is not enough. You may want to know what changed between the version published last month and the version saved today, skipping every version in between. The classic revisions screen has a mode for exactly that question.

Open the classic revisions screen and turn on the Compare any two revisions mode. In that mode the slider has two handles: one for the version you are comparing from, and one for the version you are comparing to. Drag each handle to the version you want, and WordPress shows the changes between those two specific versions. Use this mode when you are auditing a post rather than fixing a single mistake — for example, when you want to see everything that changed on a page since it was last reviewed, or when you want to check whether a particular paragraph was ever present.

Keep the question narrow. Comparing two versions that are months apart can produce a long list of changes, and a long list is easy to skim past. If the comparison is long, break it down: compare the start of the period with the middle first, then the middle with the end. Two short comparisons that you actually read are more useful than one long comparison that you only glance at.

Step 5: Restore the WordPress revision you want, then check the result

When the version on screen is the one you want, click Restore. In the newer screen, use the slider to find the revision and then click Restore. In the classic screen, use the restore control on that screen. WordPress then makes that version the current version of the post.

Do not stop at the click. A restore is only finished when you have checked the result in two places. First, read the restored version in the editor: check the title, the opening paragraphs, and the section where the bad edit happened. Second, open the live page and confirm that the public version matches what you intended. If the editor still shows the change as unsaved, save or update the post before you leave, and then check the live page again. The exact save step depends on which revisions screen you used, so let the editor tell you whether anything is still pending rather than assuming the live page has already changed.

If the restore brings back the wrong version, you have not lost the version you were on. That version remains in the revisions list, because a restore does not erase the history around it. Open the revisions screen again, find the version you were on before the restore, and restore that one instead. Treat a second restore the same way as the first: read the comparison, restore, and check the editor and the live page.

One more check belongs in this step. After a restore, look at the items that revisions do not carry: the featured image, categories and tags, and any settings changed at the same time as the bad edit. If any of those were part of the change you wanted to undo, fix them directly now, while the before-and-after versions are still fresh in your mind. Leaving that check until later is how a post ends up with the right words and the wrong image.

Step 6: Recover an autosave in WordPress revisions after a crash or a lost connection

An autosave is not the same as a revision, although WordPress stores it in a similar way. A revision is created when you save, update, or publish. An autosave is created automatically while you edit, in the background, to protect work you have not saved yet. The default interval is 60 seconds, and the interval can be changed with the AUTOSAVE_INTERVAL constant in wp-config.php. An autosave does not overwrite the published post, so a crash while editing does not by itself change what visitors see.

Only one autosave is kept for each user for a given post, and a fresh autosave takes the place of the previous one, so the autosave system does not add a new database row every minute. In a site with several editors, each user has their own autosave for the same post. In the revisions timeline, autosaves carry an Autosave label, which is how you tell them apart from ordinary saved revisions.

If your browser crashes, if the power goes out, or if you lose your internet connection while editing, WordPress shows a warning when you go back to edit that post, with a link to restore the backup it kept. Follow that link, read the autosaved version in the revisions screen, and restore it with the same Restore control used for an ordinary revision. Check the restored content in the editor before you save, because an autosave captures the editing session at the moment it ran, and it may include a half-finished sentence or a paragraph you had not yet decided to keep.

Do not treat an autosave as a long-term version. Because only one autosave is kept per user per post, and because a new autosave replaces the old one, the autosave you need today may be replaced by the next editing session. If you recover work from an autosave, save the post properly once you have checked it, so the recovered wording becomes an ordinary revision that the limit setting will keep for as long as your history allows.

Step 7: Decide how many WordPress revisions to keep

By default, WordPress keeps every revision. That default is safe for recovering old versions, and it is the right starting point for a small site. It becomes a storage question on a site with many posts, many editors, or pages that are updated often, because each revision is another row in the posts table. The WP_POST_REVISIONS constant in wp-config.php lets you set a limit, or switch revisions off entirely. The choice should be made deliberately, not copied from a speed guide without thinking about how far back your editors need to go.

The values work like this. Setting WP_POST_REVISIONS to true, or to -1, stores every revision, which is the default behaviour. Setting it to false, or to 0, stores no revisions, except for the one autosave per post. Setting it to a positive number stores that many revisions, plus one autosave per user, for each post, and older revisions are deleted automatically when the post is updated again. The example in the WordPress documentation uses 3:

define( 'WP_POST_REVISIONS', 3 );

That example is a format example, not a recommendation for every site. A limit of 3 keeps only a very short history, and a site that reviews pages monthly may need more. A working range for a business site is enough versions to cover a few weeks of real editing on its busiest pages, and the right number depends on how often those pages change and how long a mistake can go unnoticed. Pick a number, write down why you picked it, and revisit it when the editing pattern changes. Developers can also set the limit in code with the wp_revisions_to_keep filter, which allows a different limit for a given post, but that is a developer task, not a setting to change by trial and error in the editor.

Back up wp-config.php before you edit it, and edit it with the same care you would give to any file that WordPress loads on every request. Add the line to wp-config.php, save the file, and then test the result on a post you can afford to check: save a test update, open the revisions list, and confirm that the behaviour matches what you intended. A limit only applies going forward. It does not clean up revisions that are already stored, so if the database is already heavy with old revisions, setting a limit will not shrink it on its own. For existing revisions, use the database optimisation route described in the guide to optimising a WordPress database, and keep a backup before any cleanup that deletes rows.

Switching revisions off entirely is rarely the right answer for a site with more than one editor, or for a site where pages are updated by people who cannot easily rewrite lost wording. The autosave alone protects only the current editing session, for one user, and it does not give you last week’s version of a page. If you are tempted to switch revisions off to save space, set a limit first, measure whether the database question improves, and keep the history that lets you undo a mistake next month as well as today.

WordPress revisions stored in the database, shown by a hard disk head close-up
WordPress revisions live in the posts table of your database, so a limit is a storage decision as well as a safety decision. Photo by Matthew Hill, CC BY 2.0, via Wikimedia Commons.

When WordPress revisions are the wrong tool

WordPress revisions are the right tool for one job: bringing back an earlier version of the content of a post or page that still exists. They are the wrong tool for several neighbouring jobs. If the whole site is broken, if a theme or plugin stops pages loading, or if the database itself is damaged, open your backup instead. A revision list lives inside the same database and the same editor as the broken site, so it cannot rescue a site that will not load.

Custom content types need a separate check. A custom post type stores revisions only when its registration includes revisions support, which is the revisions feature in the supports list for that post type. If a custom type shows no Revisions row, the cause may be in how the type was registered, not in the wp-config.php setting. Check the registration against the guide to creating custom post types before changing the global revisions setting for the whole site. Changing a site-wide setting to fix one content type can remove history from every other type as well.

Finally, revisions do not record every change a plugin makes. A page builder, a form plugin, or a shop plugin may store its own data outside the title, content, and excerpt fields, and that data may have its own history, or none at all. If you edit a page in a builder and the WordPress revisions list does not show the change you expect, check the builder’s own history or undo feature first. Do not keep restoring WordPress revisions in the hope that a builder’s data will follow, because the two histories are separate systems.

Common WordPress revisions mistakes that waste a restore

The most common mistake is restoring without reading the comparison. The slider makes it easy to move quickly, and the Restore button is always in reach, so it is tempting to pick a date and click. Read the version first. Confirm the wording, confirm the section where the bad edit happened, and confirm what was added after that version that you still want.

The second mistake is treating a revision as a backup. Revisions are convenient, and because they are inside the editor they feel safer than a backup file stored elsewhere. They are not safer. They live in the same database as the post, they are limited by the same setting as every other post, and they do not cover files, settings, or the rest of the site. Use revisions for undoing edits, and use backups for recovering the site.

The third mistake is setting the limit too low, too early. A limit of 3, or switching revisions off to save space, feels tidy, but it removes the history that a monthly review depends on. A mistake discovered three weeks after it was made cannot be undone from a history that only reaches back three saves. Set a limit that matches the real review cycle of the site, and only tighten it after you know how far back your editors actually need to go.

The fourth mistake is deleting old revisions without a backup, in the hope of speeding up the site. WordPress documentation notes that there is an API function to delete revisions, but there is no dashboard screen for doing it. That absence is a warning, not an invitation to delete rows directly. If old revisions need to be cleaned up, do it through an established optimisation route, with a backup taken first, and check the site afterwards.

The fifth mistake is ignoring the autosave label. An autosave looks like a revision in the timeline, but it is a snapshot of an unfinished editing session, not a version anyone chose to save. Restoring an autosave without reading it can bring back a half-written paragraph or wording that was about to be deleted. Read autosaves with extra care, and save the post properly once the recovered wording has been checked.

Frequently asked questions

Do WordPress revisions slow down a site?

Each revision is a row in the posts table, and WordPress keeps every revision by default, so a site with many posts and frequent updates will accumulate rows. Whether that slows the site down depends on the volume of revisions, the size of the posts, and the rest of the database, so there is no single number that applies to every site. If the database feels heavy, set a limit that fits the editing pattern, as in Step 7, and follow an established database optimisation routine with a backup taken first. Do not switch revisions off as a first step, because the history you remove may be the history you need next month.

Why do I not see a Revisions row in the editor?

Check three causes in order. First, the post may not have a history to show yet, because it has not been saved and updated enough times to create earlier versions. Second, revisions may be switched off for the site, because WP_POST_REVISIONS is set to false or 0 in wp-config.php. Third, the content type may not support revisions, which is a registration question for a custom post type. Work through those three checks before changing code, and ask the site developer if the wp-config.php file or the post type registration is not something you manage yourself.

Can I restore only one paragraph from an old revision?

There is no restore-one-paragraph button. A restore replaces the whole title, content, and excerpt with the old version. To recover one paragraph, open the old revision, copy the paragraph, leave the revisions screen without restoring, and paste the paragraph into the current version of the post. That keeps everything else in the current version intact, and it avoids losing later edits that you want to keep. Save the post after pasting, so the recovered paragraph becomes part of an ordinary saved version.

Do WordPress revisions work for pages as well as posts?

Yes. The same system covers posts and pages, and the steps in this guide apply to both. Open the page, open the Settings sidebar, select the Page tab, and click the number beside Revisions. The comparison screen, the colour markers, the autosave label, and the Restore control work the same way. The difference is only the tab name in the sidebar.

Not through the revision fields themselves. A revision saves the title, the content, and the excerpt by default, so a restore brings back those fields. A template choice, a featured image, or a category assignment changed at the same time needs to be checked and fixed separately. After every restore, look at those items on the post before you consider the job finished.

The bottom line on WordPress revisions

WordPress revisions are a quiet safety net, and they work best when they are used deliberately. Open the revisions screen before you panic, read the comparison before you restore, check the editor and the live page afterwards, and keep a limit that matches how your site is actually edited. That routine turns a bad save from a rebuild into a short, checkable fix.

For most site owners, the practical setup is simple: leave WordPress revisions on, set a limit only when the database needs it, keep a full backup on a schedule, and treat the autosave as a rescue for the current session rather than a version to rely on. With that setup, the next bad edit costs a few careful clicks, not a lost afternoon. If a post has no Revisions row, check the saved history, the wp-config.php setting, and the content type support in that order, and do not change a site-wide setting to fix a single post.

Sources

Share This Article
Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *