vendredi 8 janvier 2021

How to Recover and Restore Deleted Pages in WordPress

Are you trying to recover deleted pages in WordPress?

If you accidentally deleted a WordPress page, it is possible to recover it from the recycle bin.

In this beginner's guide, we are going to show you how to easily recover deleted pages in WordPress and WooCommerce.

How does WordPress handle deleted pages?

Just like your computer, WordPress moves deleted items to a “Trash” folder. This removes those items from your website and admin screens, but they are not deleted permanently immediately.

After 30 days, WordPress automatically removes the itemt permanently from the recycle bin and your WordPress database.

If the page you deleted is still in the recycle bin, you can go ahead and restore it. We'll show you how in a minute.

However, if it was also deleted from the recycle bin, you will have to try other ways to restore the deleted page in WordPress.

Sometimes you can accidentally delete a page and not notice it for a while. For example, if you have multiple pages with the same name and you end up deleting one that you really need.

Another common scenario that we have seen thatusers accidentally deleted pages needed by WooCommerce or their WordPress membership plugin .

That being said, let's see how to easily restore deleted pages in WordPress and WooCommerce. Here's a quick table of contents, so you can jump to the section that best suits your needs.

Method 1. Recover Deleted Pages From Trash In WordPress

This method is the easiest, and you should try it before doing anything else.

Normally when you delete an item in WordPress it gets sent to the trash folder and you can i t recover it for the next 30 days. After that, it will be automatically deleted forever.

Simply navigate to Pages »All Pages in your WordPress admin area. From there, you need to switch to the "Recycle Bin " tab to view all the pages that have been deleted in the last 30 days.

 How to recover and restore deleted pages in WordPress

If the page (s) you want to recover is there, then just hover your mouse over the page title and you will see the "Restore " option.

You can also restore multiple pages at once by selecting them and then choosing "Restore " from the Bulk Actions drop-down menu at the top.

How to recover and restore deleted pages in WordPress

You can now navigate to Pages» All Pages and locate the restored page there.

It was quick and easy, but what ifthe page you deleted is not in the recycle bin?

Don't worry, there are other ways to restore deleted pages in WordPress.

Method 2. Restore deleted pages in WordPress using a backup plugin

Backups are the one of the best WordPress security and productivity All WordPress websites need to set up an appropriate WordPress backup plugin.

These WordPress backup plugins not only help you recover hacked WordPress site, but they can also help you recover deleted content including pages. >

Note: WordPress backup plugins allow you to restore your entire We siteb at an earlier point. This means that any other changes you made to your website after this period may be lost.

If you know when you deleted a page, you can go to the last backup before this time to restore your website.

If you haven't installed a WordPress backup plugin, there's still a good chance your the WordPress hosting company does, and you can always restore it through cPanel.

For step by step instructions, you can follow our guide on how to restore WordPress from backup . He myHow to restore WordPress from a backup using UpdraftPlus , BackupBuddy , phpMyAdmin, cPanel, etc.

Method 3. Recover Deleted WooCommerce Pages

By default, WooCommerce creates pages for checkout, cart, shop, and account management. These are important pages for your WooCommerce store to function properly.

If you accidentally delete a WooCommerce page, you can first try to restore by looking in the trash (see method 1 above).

If you can't find the page in the trash, you can just create a new one. For example, you can go to Pages »Add New and then create a blank page titled " Cart ".

Likewise, you can create other WooCommerce pages as well as for the store.tick, cash register and account.

After creating new pages, you can tell WooCommerce to use these new pages instead. Just go to the WooCommerce »Settings page and go to the " Advanced "tab.

 How to recover and restore deleted pages in WordPress

Fro m here you can select the pages you created earlier in the Layout section.

For the store page, you will need to switch to the "Products " tab and then select the page you want to use as the store page.

 How to recover and restore deleted pages in WordPress

N 'Remember to click the ' Save changes 'button to save your settings.

Method 4. Restore selected pages from a WordPress backup (advanced)

This method is a bit complicated, unreliable, and not recommended for beginners. However, it would be useful if you don't want to restore an entire website and lose all changes you made after this backup.

You can simply restore your WordPress backup to a local server installation, then copy and paste the page content you want to restore.

First, you will need to download your WordPress backup files to your computer. Simply navigate to your database backup plugin pageWordPress data and you will be able to see recent backups.

For example, here is how you will see your recent backups listed in UpdraftPlus .

Just click on the database backup to download it to your computer.

Then you will need to restore your WordPress site to a local server. You can install WordPress on your computer using WAMP (or MAMP for Mac ).

After that you can use can install your WordPress backup plugin on local server installation and restore using backup files .

Optionally, if you only have the database backup, you can restore this using phpMyAdmin as well.

Once you have restored the WordPress database, youYou will need to update the WordPress site and home URLs in the database. To do this, just open phpMyAdmin on your local server by typing the following url:

http: // localhost "/ phpmyadmin /

After that you need to select your WordPress database in the left column, then click on the wp_options table. Switch to the Browse tab and find the rows containing "siteurl" and "home" in the option_name column.

You will notice that the option_value column contains the URL of your live website. You need to edit these two lines and replace your option_value to match your server WordPress sitelocal.

Then click on the "OK " button to save your changes.

You can now log into your local host installation and you will see all of your old pages listed under Pages »All Pages .

How to recover and restore deleted pages in

Go ahead and edit the page you want to restore. All you have to do is copy the content and paste it into your live WordPress website as a new page.

Be sure to update or post any changes to your online website.

We hope you find this article helpful. helped find out how to recover deleted pages in WordPress. You can also check out our complete WordPress security guide to keep your WordPress site safe, and our list of must have WordPress plugins for all sitesWeb.

If you liked this article, please subscribe to our YouTube channel for WordPress video tutorials. You can also find us on Twitter and Facebook .

Aucun commentaire:

Enregistrer un commentaire