It happens that when working with WordPress we accidentally delete a page or entry. This may happen by mistake or due to a system failure. In this case, we wonder how to recover pages in WordPress. Fortunately, there are various methods that allow you to recover this data. In this article we will discuss a few of them.
1. Basket
WordPress has a built-in recycle bin, just like computers. When you delete a page, it is moved to the trash rather than completely deleted. You can easily restore deleted pages from trash by following these steps:
- Log in to the WordPress administration panel.
- Przejdź do 'Strony’ > 'Wszystkie strony’.
- Wybierz zakładkę 'Kosz’.
- Znajdź stronę, którą chcesz przywrócić, kliknij na nią i wybierz 'Przywróć’.
Please note that pages are kept in the trash for 30 days. After this time, they are permanently deleted.
2. Wtyczka „WP Rollback”
’WP Rollback’ to wtyczka, która pozwala na przywrócenie poprzednich wersji stron i wpisów. Jej instalacja i użycie to:
- Log in to the WordPress administration panel.
- Przejdź do 'Wtyczki’ > 'Dodaj nową’.
- Wyszukaj 'WP Rollback’ i zainstaluj wtyczkę.
- Aktywuj wtyczkę, a następnie przejdź do 'Strony’ > 'Wszystkie strony’.
- Wybierz stronę, którą chcesz przywrócić, kliknij 'Rollback’ i wybierz wersję do przywrócenia.
Please note that this plugin restores a version of the page, not the page itself, which may be interpreted slightly differently.
3. Site backup
Another method of recovering deleted pages is to restore the page from a backup. Many hosting companies offer automatic website backups. If your hosting offers this, contact them to restore your pages.
Możesz także skorzystać z wtyczek do tworzenia kopii zapasowych, takich jak 'UpdraftPlus’ lub 'BackWPup’. One umożliwiają stworzenie kopii zapasowej strony i bazy danych, co pozwala na przywrócenie strony do stanu sprzed usunięcia.
4. Restore from database
If none of the above methods worked, it is still possible to restore the page directly from the database. However, this method is quite complicated and requires some technical knowledge. It involves accessing the database using phpMyAdmin and restoring deleted pages.
Even though WordPress data recovery is possible, prevention is the most important thing. Regularly backing up your website and data is the best way to protect yourself against data loss. Moreover, it is always worth checking what we are deleting before we actually do it. Let us remember that prevention is better than treatment.