The Complete Guide to WordPress Post Revisions: Never Lose Content Again

Imagine spending hours crafting the perfect blog post—polishing sentences, refining arguments, adding images—only to accidentally delete a critical paragraph, lose power, or have your browser crash. Panic sets in: all that hard work, gone. But what if there was a safety net built into WordPress that automatically saves your progress, tracks every change, and lets you revert to any previous version of your content?

That safety net is WordPress Post Revisions.

Whether you’re a solo blogger, a content marketer, or part of a team managing a website, post revisions are an indispensable tool for protecting your work, collaborating effectively, and maintaining content quality. In this comprehensive guide, we’ll demystify WordPress post revisions: what they are, how they work, how to access and manage them, and advanced tips to optimize their use. By the end, you’ll be able to leverage revisions to avoid data loss, streamline workflows, and take full control of your content’s history.

Table of Contents#

  1. What Are WordPress Post Revisions?

    • Definition and Purpose
    • Autosaves vs. Manual Revisions
    • How Revisions Are Stored in WordPress
  2. How WordPress Post Revisions Work

    • The Autosave Mechanism
    • Manual Saves and Revision Creation
    • Revision Limits and Default Behavior
  3. Accessing Post Revisions: Step-by-Step Guide

    • In the Gutenberg Editor
    • In the Classic Editor
    • For Custom Post Types (CPTs)
  4. Managing Revisions: View, Compare, Restore, and Delete

    • Viewing Revision History
    • Comparing Two Revisions
    • Restoring a Previous Version
    • Deleting Specific Revisions
  5. Configuring Post Revision Settings

    • Limiting the Number of Revisions
    • Disabling Revisions Completely
    • Adjusting Autosave Interval
  6. Best Practices for Using Post Revisions

    • Regularly Review Revision History
    • Use Revisions for Collaboration
    • Combine Revisions with Backups
    • Clean Up Old Revisions
  7. Troubleshooting Common Revision Issues

    • Revisions Not Showing Up
    • Unable to Restore a Revision
    • Database Bloat from Too Many Revisions
  8. Advanced Tips and Plugins for Post Revisions

    • Enabling Revisions for Custom Post Types
    • Plugins to Enhance Revision Control
    • Tracking Revisions for Media and Custom Fields
  9. Conclusion

  10. References

What Are WordPress Post Revisions?#

Definition and Purpose#

WordPress Post Revisions are a built-in feature that automatically saves copies of your posts and pages as you edit them. Think of revisions as a “time machine” for your content: they record every change you make—additions, deletions, formatting edits, and even media insertions—allowing you to revisit, compare, or restore previous versions at any time.

The primary purpose of revisions is to prevent data loss. Whether you accidentally delete a section, your internet cuts out, or a plugin conflict corrupts your content, revisions let you roll back to a working version. They also facilitate collaboration by letting you track who made what changes (and when) if multiple authors edit the same post.

Autosaves vs. Manual Revisions#

It’s important to distinguish between two types of saved versions in WordPress: autosaves and manual revisions.

  • Autosaves: These are temporary, automatic saves that WordPress creates while you edit. By default, WordPress autosaves your post every 60 seconds (you can adjust this interval). Autosaves are tied to your user session—meaning if you log out or close the editor without manually saving, the autosave will be discarded. Autosaves are labeled “Autosave” in the revision history and are overwritten by new autosaves every minute.

  • Manual Revisions: These are permanent saves created when you click the “Save Draft,” “Update,” or “Publish” button. Unlike autosaves, manual revisions are stored indefinitely (unless you limit or disable them) and appear in the revision history with a timestamp, author name, and the label “Revision.”

How Revisions Are Stored in WordPress#

Revisions are stored in your WordPress database, specifically in the wp_posts table. Each revision is treated as a separate “post” with a post_type of revision and a post_parent value equal to the ID of the original post. This means revisions don’t clutter your main post list—they’re only accessible via the post editor.

For example, if you have a post with ID 123, all its revisions will appear in wp_posts with post_parent = 123 and post_type = revision. This structure ensures revisions are linked to their original content but don’t interfere with your site’s frontend or main post management.

How WordPress Post Revisions Work#

The Revision Creation Process#

Here’s a step-by-step breakdown of how revisions are generated:

  1. Start Editing: When you open a post in the editor (Gutenberg or Classic), WordPress loads the latest saved version.
  2. Autosave Triggers: As you type, WordPress autosaves every 60 seconds. This autosave is stored temporarily and only visible to you (the current user).
  3. Manual Save: When you click “Save Draft,” “Update,” or “Publish,” WordPress creates a permanent revision and updates the post’s status (e.g., from “Draft” to “Published”).
  4. Revision History Builds: Each manual save adds a new revision to the post’s history. Over time, this creates a timeline of edits you can browse.

Revision Limits (By Default)#

By default, WordPress does not limit the number of revisions it stores. This means every manual save (and every autosave that becomes a revision after a manual save) is kept indefinitely. While this is great for safety, it can bloat your database over time—especially if you edit posts frequently or have long-form content. Later in this guide, we’ll show you how to limit revisions to prevent database bloat.

Accessing Post Revisions: Step-by-Step Guide#

Accessing revision history varies slightly depending on whether you use the Gutenberg Editor (WordPress’s default block editor) or the Classic Editor (the older, TinyMCE-based editor). Here’s how to do it in both:

Accessing Revisions in the Gutenberg Editor#

  1. Open the Post/Page Editor: Go to Posts → All Posts (or Pages → All Pages) and click “Edit” on the post you want to check.

  2. Open the Settings Sidebar: If the sidebar isn’t visible, click the gear icon ⚙️ in the top-right corner of the editor.

  3. Navigate to Revisions: In the sidebar, scroll down to the “Revisions” tab (it may be collapsed under “Status & Visibility” or “Summary”). Click “Revisions” to open the revision history.

    Note: If you don’t see the “Revisions” tab, revisions may be disabled for your site (see Configuring Settings).

Accessing Revisions in the Classic Editor#

  1. Open the Post/Page Editor: Go to Posts → All Posts (or Pages → All Pages) and click “Edit” on the post.
  2. Locate the Revisions Meta Box: In the Classic Editor, revisions are typically displayed in a meta box labeled “Revisions” below the editor (you may need to scroll down or expand the “Screen Options” tab at the top to enable it).
  3. View Revisions: Click “Browse” to open the revision history interface.

Revision Interface Overview#

Once you open the revision history, you’ll see a timeline-based interface with:

  • A slider or list of revisions, each labeled with the author’s name, timestamp, and type (e.g., “Revision” or “Autosave”).
  • Two columns comparing revisions: “Earlier” (left) and “Later” (right). Additions are highlighted in green, deletions in red.
  • Buttons to “Restore This Revision” or “Delete This Revision” (for manual revisions).

Managing Revisions: View, Compare, Restore, and Delete#

Now that you know how to access revisions, let’s dive into how to manage them effectively.

Viewing and Comparing Revisions#

To view a single revision:

  • In the revision interface, click on a revision in the timeline or use the slider to select it. The editor will display the content as it existed at that point.

To compare two specific revisions:

  1. In the revision timeline, check the boxes next to two revisions (labeled “Compare” below each entry).
  2. The interface will update to show the differences between the selected versions, with changes highlighted.

Pro Tip: Use the “Previous” and “Next” buttons to navigate sequentially through revisions, or jump to the oldest/newest revision using the “First” and “Last” buttons.

Restoring a Revision#

Restoring a revision replaces your current post content with the selected version. Here’s how:

  1. Select the Revision: In the revision interface, navigate to the version you want to restore.
  2. Review the Content: Double-check that this is the correct revision—restoring will overwrite your current edits!
  3. Click “Restore This Revision”: A confirmation prompt will appear. Click “OK” to proceed.

WordPress will then reload the editor with the restored revision. Your current content (before restoring) will be saved as a new revision, so you can revert again if needed.

Deleting Specific Revisions#

If you want to clean up old or unnecessary revisions, you can delete them individually:

  1. Open the Revision Interface: Access the revision history for the post.
  2. Locate the Revision to Delete: Find the revision in the timeline and click the “Delete” link below it (labeled “Trash this revision”).
  3. Confirm Deletion: WordPress will remove the revision permanently.

Note: You cannot delete the “Current Revision” (the latest saved version) or autosaves—only manual revisions.

Configuring Post Revision Settings#

By default, WordPress stores unlimited revisions, which can slow down your database over time (especially for large sites with many posts). Fortunately, you can customize revision behavior by editing your wp-config.php file (located in your WordPress root directory).

Limiting the Number of Revisions#

To restrict WordPress to storing a specific number of revisions per post, add the following line to wp-config.php before the line that says /* That's all, stop editing! Happy publishing. */:

define( 'WP_POST_REVISIONS', 5 ); // Keep the last 5 revisions

Replace 5 with your desired number (e.g., 10 for 10 revisions).

Disabling Revisions Completely#

If you want to disable revisions entirely (not recommended—revisions are a safety net!), set WP_POST_REVISIONS to false:

define( 'WP_POST_REVISIONS', false );

Warning: Disabling revisions removes all existing revision history for future posts. Existing revisions will remain in the database but won’t be accessible.

Adjusting the Autosave Interval#

To change how often WordPress autosaves (default: 60 seconds), add this line to wp-config.php:

define( 'AUTOSAVE_INTERVAL', 120 ); // Autosave every 120 seconds (2 minutes)

Use a higher number (e.g., 300 for 5 minutes) to reduce server load, or a lower number (e.g., 30) for more frequent safety saves.

Important: Always back up wp-config.php before editing it. A single typo can break your site!

Best Practices for Using Post Revisions#

To make the most of revisions while keeping your site efficient, follow these best practices:

1. Regularly Review Revision History#

Get in the habit of checking revisions before publishing or updating a post. This helps catch accidental deletions, formatting errors, or unwanted changes (e.g., from a collaborator).

2. Use Revisions for Collaboration#

If multiple authors edit the same post, revisions let you track who made what changes. Check the author name and timestamp in the revision timeline to see contributions and resolve conflicts.

3. Combine Revisions with Backups#

Revisions are not a substitute for full backups! Revisions are stored in your database, so if your database is corrupted or hacked, revisions may be lost. Use a backup plugin like UpdraftPlus or VaultPress to create regular offsite backups.

4. Clean Up Old Revisions#

Even with a revision limit, old revisions can accumulate. Periodically delete unnecessary revisions using:

  • Built-in deletion: Delete individual revisions via the revision interface (see Deleting Revisions).
  • Plugins: Tools like WP-Optimize or Advanced Database Cleaner let you bulk-delete revisions across your site.
  • SQL (Advanced): Run this query in phpMyAdmin to delete all revisions (replace wp_ with your database prefix):
    DELETE FROM wp_posts WHERE post_type = 'revision';
    Always back up your database before running SQL queries!

5. Name Key Revisions (With Plugins)#

WordPress doesn’t let you name revisions by default, but plugins like Revision Control or WP Revisions Control let you add notes (e.g., “Final draft for review”) to revisions, making them easier to identify later.

Troubleshooting Common Revision Issues#

Revisions Not Showing Up#

If the “Revisions” tab is missing or no revisions appear:

  • Check if Revisions Are Disabled: Verify wp-config.php for define( 'WP_POST_REVISIONS', false );—remove or change this line.
  • Plugin Conflict: Deactivate plugins (especially security or optimization plugins) to see if one is blocking revisions.
  • Database Corruption: Run a database repair via Tools → Site Health → Database (in WordPress 5.5+) or use phpMyAdmin to repair the wp_posts table.

Unable to Restore a Revision#

If restoring a revision fails:

  • Permissions Issue: Ensure your web server has write access to your WordPress files and database.
  • Large Post Size: Revisions for posts with many images or large content may fail to restore. Try restoring a smaller revision or disabling plugins temporarily.
  • Autosave Conflict: If you’re editing with autosaves enabled, try manually saving first, then restoring.

Database Bloat from Too Many Revisions#

If your site is slow, check if revisions are bloating your database:

  • Check Revision Count: Use a plugin like WP-Sweep to see how many revisions exist.
  • Bulk Delete Revisions: Use WP-Optimize or Advanced Database Cleaner to delete old revisions.
  • Limit Future Revisions: Set WP_POST_REVISIONS in wp-config.php to a lower number (e.g., 3–5).

Advanced Tips and Plugins for Post Revisions#

Enabling Revisions for Custom Post Types (CPTs)#

By default, revisions are enabled for posts and pages but not for custom post types (CPTs). To enable revisions for a CPT, add 'revisions' => true to your CPT registration code:

register_post_type( 'book', array(
  'labels' => $labels,
  'public' => true,
  'supports' => array( 'title', 'editor', 'revisions' ), // Add 'revisions' here
) );

Must-Have Revision Plugins#

Enhance revision functionality with these plugins:

  • WP Revisions Control: Lets you set revision limits per post type and add notes to revisions.
  • Simple History: Logs all revision activity (and other site changes) in a user-friendly dashboard.
  • Revisionary: Advanced workflow tool for scheduling revisions, approving edits, and managing draft versions.
  • WP-Optimize: Cleans up old revisions, spam comments, and database clutter to improve performance.

Tracking Revisions for Media and Custom Fields#

By default, revisions track post content but not media (e.g., image changes) or custom fields. Plugins like Advanced Custom Fields (ACF) with the ACF Revisions add-on let you include custom fields in revisions, while Media Revisions tracks image edits.

Conclusion#

WordPress Post Revisions are a powerful, underutilized tool that can save you from data loss, streamline collaboration, and keep your content history organized. By understanding how revisions work, configuring them to suit your site, and following best practices, you’ll ensure your content is always protected—no matter what editing mishaps come your way.

Remember: revisions are your safety net, but they work best when combined with regular backups and database maintenance. With the tips in this guide, you’ll master revisions and take full control of your WordPress content.

References#