Scroll to top
USA
651 N Broad St, Suite 206,
MiddleTown, New Castle,
Delaware - 19709
Canada
635 Ashprior Avenue,
Mississauga, Ontario,
Canada - L5R3N6
India
34, Shiwanshu Bunglows
Vadodara, Gujarat - 390007

How to Restore Deleted Pages in WordPress (UPDATED)

87 / 100

Worried that you won’t be able to restore a page or post that you deleted on your WordPress site? Don’t panic, there are many ways to recover your lost content.

How to Restore Deleted Pages in WordPress

WordPress has a built-in feature called Trash to restore deleted pages and posts, however, it only works with recently deleted items. If you’re trying to recover older items or permanently deleted ones, you need to explore other options.

In this article, we’ll show you how to easily restore deleted pages in WordPress 

How To Restore Deleted Pages in WordPress

We all make mistakes. We’ve all been there where we accidentally delete a post and realize the mistake immediately. But the important thing is not to panic. If you fall into such a situation, just follow these instructions on how to restore a deleted page in WordPress and you’ll be fine.

If you have just deleted a post or a page and want to undo your action immediately, WordPress gives you an option to Undo.

Undo button in WordPress

Click on this “Undo” button and your post or page will be restored. If you’ve deleted a post or page and a few hours or days have gone by, you’ll need to follow a different way to restore it.

When you delete a page or post, it isn’t wiped out from your website immediately. WordPress sends it to a folder called Trash. Any page or post you delete will stay inside the trash folder for 30 days.

So you can retrieve your deleted posts or pages easily, but you have to do it within 30 days.

Step 1: You need to log into your WordPress admin panel and go to Pages or Posts (Depending on which one you want to restore).

Step 2: You need to click on Trash and you’ll be redirected to all your deleted pages and posts.

Step 3: Then select the page you want to restore, and two options will appear under it – Restore and Delete Permanently.

Restore button in WordPress dashboard

Step 4: After that, select Restore, and the page will disappear from the list of items in the Trash folder. Go back to Pages or Posts, it will appear here.

Your page or post is now restored to normal.

If you don’t see the Trash option on your dashboard, it means there are no deleted pages or posts stored on your site. Or, it has been more than 30 days since you deleted it or you’ve chosen to permanently delete those pages. Restoring deleted pages will not be possible using this option.

How To Restore Permanently Deleted Pages Or Posts In WordPress

You may find yourself in a situation where your pages or posts have been permanently deleted and aren’t in the Trash folder. Some of the common situations that lead to this are:

  • A user selects the posts and chooses to ‘Delete Permanently’.
  • A user deletes the main administrator account which leads to the deletion of pages or posts created under the admin username.
  • Hackers access your site and delete pages or posts.
  • A random glitch during an update or modification on your website causes a few posts to disappear. This is rare but it does happen.

If you find yourself in these situations, there is no way to retrieve these pages from the WP admin panel. You can try a few other methods to get your pages or posts back:

  • Restore Your Backup
  • Check Your Database
  • Retrieve Content From Google’s Cache

1. Restore Your Backup To Retrieve Deleted Pages And Posts

The easiest way to retrieve deleted blog posts and pages are to restore your website’s backup. If you’ve used a backup service like BlogVault, you can easily restore your backup with a few clicks. If you haven’t taken a backup copy with a backup plugin like BlogVault, you can try contacting your web host or using cPanel.

We’ll show you how to restore your backup using three methods:

  • Using a plugin
  • Using your Web Host
  • Using Softaculous

Before you restore your backup, you need to test the backup copy to ensure it has all the content you want. This includes the deleted posts and pages as well as the new ones you’ve recently added to your site. If you revert to an old backup copy, chances are you’ll lose the more recent updates to your site.

A. Restore Your Backup Using A Plugin (BlogVault)
Step 1: Visit the BlogVault dashboard. Go to Backups and select Test Restore. Select which backup copy you want to restore and proceed.
Blogvault doasboard
Step 2: Visit the Test Restore Site created and check if your pages and posts are recovered. Make sure you haven’t lost any recent data.
Step 3: Go back to Backups and select Restore. Choose the same backup copy you tested and restore your site.
restore backup from blogvault

This will only take a few minutes and your pages and posts will be restored on your website.

B. Restore Your Backup With Your Web Host

Request your web hosting provider for a backup copy. They may be able to provide you with a backup copy that you will have to restore manually using the Backup Wizard on cPanel.

restore backup from your web host

If you opt for this route, you can follow our guide on using cPanel’s Backup Wizard.

C. Restore Your Backup Using Softaculous

Check if your host provides the app installer Softaculous. If your WordPress site was installed using Softaculous, they may have maintained backup copies if the option was selected during installation.

Go to your web hosting account > cPanel. Here, look for Softaculous.

restore backuo using softaculous wordpress installer

Open it and check if you have backups here. If you do, select it and click on Restore.

restore backup in softaculous

The problem with this method is that you won’t be able to test your backup copy to make sure it’s the right one. You would need to download the copy. Then use a staging site and restore the backup copy there to test it out.

2. Check Your Database For Deleted Pages And Posts

Using this method, you won’t be able to recover your deleted pages and posts, however, you can retrieve their content. You can then use the content to create a new page or post.

This method requires some amount of technical expertise as you need to go into your WordPress database to fetch the content.

We caution you to first take a full backup of your WordPress site. Ensure you’ve backed up your files and database, then we can proceed.

Step 1: Log into your web hosting account. Go to cPanel > phpMyAdmin.
Step 2: In the left column, you’ll see database names. Click on your database to expand its contents. Alternatively, you can click on Databases on the right panel at the top of the screen, and select your database.

If you don’t know your database name, go to cPanel > File Manager > public_html. Here, download your wp-config.php. Open this file with any text editor like Notepad. You’ll find your database name in this file.

Step 3: A list of tables will load. Locate wp_posts.
check fro backup in phpmyadmin databases
Step 4: Once you click on it, it will redirect you to another page that contains all your content – pages and posts included.
database containing pages and posts of your WordPress site

You can click on Edit to open and view your file. The content will be in HTML format and not plain text. You can copy this content and create a new page or post.

restore backup using phpmyadmin

3. Retrieve Deleted Pages And Posts From Google’s Cache

Search engines usually keep a cached version of your website in internet archives. If you had published your posts and pages and it was indexed by Google, you can try to find it using Google’s cache.

Step 1:  Go to www.google.com.
Step 2:  Search for the URL of the page or post you are trying to recover. You can also try using the following command: site:www.example.com/name_of_the_old_post. Replace “example” with your website’s name.
Step 3:  If you see your page in the results, click on the arrow pointing down next to your URL. You will get two options – Cached and Similar.
Google cache
Step 4: Google will display the page as it appeared on a particular piece of data. If this contains the content of your page before you deleted it, you can copy it and recreate the page.
google cache check

An alternative to Google’s cache is the Wayback Machine. It takes snapshots of your site now and then. You can try to retrieve your content from here as well. That brings us to an end to recovering deleted pages or posts.

We hope this article helped you learn how to recover deleted pages in WordPress. You may also want to see our complete WordPress security guide to keep your WordPress site safe and secure, and our list of the must-have WordPress plugins for all websites. You can visit the other articles on Blog – Wpuber.com.

Author avatar
Tim Michaels
I am into WordPress and web development for the last 10 years. I use my experience to help people just starting with WordPress. Follow my blog at WP Uber for everything related to WordPress.
We use cookies to give you the best experience.
Do NOT follow this link or you will be banned from the site!