Are you worried about the revision history not being displayed on your WordPress site? If Yes, then we will be discussing this issue of WordPress Revisions not showing up.
Today we are going to discuss what are the various methods and ways you can fix this issue. And why are you facing this issue in the first place?
As you might be already aware of WordPress block editor comes with the feature which shows the number of times you have revised your post or article.
Now, this revision number lets you go back to the previous version of the post or article. And if you want to revert the latest changes made to your article.
Since there can be a time when you have written the article very precisely and concisely. Later you added some more information to it. But after adding the information.
You found that it’s not adding much value to your article and you want to move back to the previous version.
What is Post Revision in WordPress?
Post Revision is a feature in WordPress which keeps track of all the changes you made in the last saved post or article. To explain it in simple words, if you have created the post then it will be marked as revision 1 and after this, if you made any changed and saved the post it will be marked as revision 2.
So, whenever you start editing any post in WordPress, WordPress will automatically create temporary revisions for it. And it was usually done by tracking autosave.
The button on top of your editor where it is marked as Save Draft will get converted to Autosaving whenever WordPress will save your document temporarily. And this happens every 60 seconds.
This feature of autosave helps you restore the content back to the previous state if anything goes wrong. For example, if you mistakenly closed your browser or it crashed then the autosave data will keep the draft mode as it is and you can restore it once you open the post again for editing.
Apart from the autosave, there is another feature that is saving manually using the CTRL+S button. This will create a permanent revision version for your post and it will be visible in the editor that how many times you have edited the document.
When Post Revisions is Shown WordPress?
When you start writing the post, you may not see the Revision tab in the block editor immediately. But autosave will still save you data and last revisions.
To start seeing the revision tab in the block editor of WordPress you need manually save the post first. For example, if you have written a post title and first paragraph, just hit ctrl+s or select the save draft button on the top right of the block editor.
Once you have selected the CTRL+S or save draft option on block editor and after you edit the post and again save the document then you will immediately start seeing the revision tab in the right panel of block editor under post tab as revision 2.
As revision will only start showing once you save a second time. Since this revision tab will let you move to revision 1 of the document. Hence that is why if you haven’t saved the document two times you may not be able to see the revision tab.
Tips When WordPress Revisions Not Showing Up in Block Editor or Classic Editor
You may follow the below tips in case you are still not able to see the revision tab in the block or classic editor. Then there may be a possibility that it is not enabled in the setting section.
To enable post revision follow the below steps:
- Go to the Theme Editor Tab and Browse the Files.
- If you are not able to see the editor then simply install this plugin.
- Once you are in the theme editor, select wp-config.php and select edit.
- In that anywhere above the line that says require_once(ABSPATH . ‘wp-settings.php’) write, below the line and save the file.
Note: Be Cautious while editing any config PHP files and take backup. To make sure nothing goes wrong.
Also, to disable the Post Revision in WordPress you can always replace true with false in the above code and save the file. This will make the post revision completely disabled from your WordPress website.
Still Not Able to See Post Revision Option in WordPress
If you are not using the block editor and you are still using the classic editor and you have done the above step but still the revision is not displayed then most probably it is disabled from the screen option available in the classic editor.
To enable select screen option in the classic editor and make sure that revision is tick marked or selected. Make sure it is ticked and not as seen below image.
How to Limit the Number of Revision
To limit the number of revisions allowed for any document or post in WordPress is that you go to the wp-config.php file using theme editor and then you can add below the line and save it.
define( ‘WP_POST_REVISIONS‘, 15);
By adding the above code and saving the file will limit the post revision to 15. You can replace 15 with any number of revisions you want your WordPress website to abide by.
But it’s always good practice not to modify the default setting which lets you do any amount of revision you want in WordPress. This does not affect your website speed or anything.
How to use Post Revision and Undo the Changes in WordPress
Block Editor in WordPress displays a number of times the article has been revised. Under the post tab, you can see the number of revisions that have been done for that post or document.
And then if you want to revert to the previous revision version, just click on the right side of the screen where revision is displayed. This will take you to the page which will inform you about the changes made from the last version to this version.
Note that the above thing is applicable to both post and document. It works in a similar way if you are editing a page or document or post in WordPress.
So, upon selecting or clicking on the revision tab you will be taken to the page of revisions on WordPress. Where you can compare your latest post or document with the previous version and this lets you revert as well if you want to.
Changes displayed on right are the ones made in the latest revision displayed in green color. While the red ones on the left show that these are the older version of the document or post.
To restore to the previous version, WordPress provides you the option of Restore this version button as displayed in the above image. Also, you will get the options to save the autosave versions of the document as well.
You can use the previous button and move forward or backward version of the document or post and then you can select compare any two versions which will let you select any two versions of the document or post you want to compare.
To restore any revision all you need to do is go to that revision and select the button to restore this revision button on the top right of the block. This will let WordPress save your current post revision as a draft, and then you can save it to commit the changes.
Once you have selected the button to restore this revision, keep in mind that a new draft with the selected version will be created and all the after version of that post or document will be restored as of the last previous version and will be retained.
I hope I answered your query using this post and you were able to fix your post revision issue using my guide. If you are still stuck at something let us know in the comment section I will be happy to help.