Today I will show you how to fix the error in WordPress when creating a new post or page “You are currently editing the page that shows your latest posts.” It gave me the option to write a title but couldn’t find the content section anywhere.
With a publish section on the right side and limited non-editable options such as “Save Draft”, Status: Blank, Visibility: Public and “Submit for review” I couldn’t do pretty much anything.
So there I was stuck with few hundred posts in the database but couldn’t add any more, however, I could edit the ones that were already there.
So frustrating, and after an exhausting hour of google search I came out empty-handed with nothing to show for but a few things to try to fix it on my own.
In this guide, we’ll take a look at:
Things I tried to fix “You are currently editing the page that shows your latest posts” error in WordPress.
Each one of these options to fixing the error “You are currently editing the page that shows your latest posts” in WordPress will need FTP access to the root folder of your WordPress installation and or access to your database via PHPMyAdmin through your cPanel or however you access your database.
Disable All Plugins
The first option that came to mind after not finding anything useful in my google search rampage was to disable all plugins.
Usually, this fixes the majority of the issues and if this option worked for you and if you are not a WordPress plugin engineer I would suggest to find an updated version of the plugin, contact the developer or find a similar plugin.
Then I tried to edit the file post-new.php inside the wp-admin folder which is at the root of your WordPress installation.
With little to no success, I was able to move things around but nothing related to my issue.
You are currently editing the page that shows your latest posts. A Database Issue.
So this is the option that worked for me.
It turned out to be a database issue, so I’ve been playing around with importing and exporting posts from an old site that I had and in the process, I added a few columns to the table: wp_posts and I needed one of those tables to have unique values which is what was causing the issue.
So here’s what you can do to see if this method works for you:
Step 1 whenever messing with the database is and always should be to fully backup your database.
Step 2 If you are dealing with a small or brand new database with no content simply reset it to defaults after backing it up of course.
by installing and activating the plugin “Advanced WordPress Reset” by Younes JFR. (you can uninstall it after). Install it manually through the link provided above or let WordPress Install it for you by going to /wp-admin/plugin-install.php
After the plugin has finished doing its magic try to make a post and your problem should be fixed, and the error “You are currently editing the page that shows your latest posts” should be gone.
If however, you are dealing with a larger database or you just simply want to test things out, back up your entire database first and then back up just the wp_posts table then make sure you don’t have any other column set to unique except the ID column inside the wp_posts table. An extra step you could take is to make sure the structure is set to defaults as shown below.
The collation column in the structure above is not relevant to fixing this problem however it is relevant for compatibility issues with apostrophes, quotes, emojis, and similar characters (totally unrelated to our problem).
Don’t forget to share this post if it helped you in any way.
Conclusion: The reason for the error “You are currently editing the page that shows your latest posts” in WordPress (at least in my case) was a conflict with Autodraft and a custom column I created manually and set it as unique. Autodraft automatically creates a row in the database in the wp-posts even before you start typing anything on a new post but it doesn’t include the value for my custom column and since it was set to unique a conflict was occurring when WordPress tried to access the wp-posts table, hence the reason why it wouldn’t let me create a new post.
Autodraft is in place to avoid duplicated or lost content in the event that multiple users are writing a post at the same time so it is very important to have it activated if you have more than one user that can create posts. However, you can disable it if you wish.
So I do need that custom column to be in place and also to be set as unique and I will let you know when I find a workaround but in the meantime what I’m gonna do after creating a new post is delete the Autodraft from the database manually or with a script or simply disable it altogether.