• Resolved chcw

    (@chcw)


    Hi

    I am editing a custom post, and after the editing completes, I click “Update” button. However, I get an error message saying the link has expired, I need to login to complete the update. So I login again, but find all my changes are lost.

    Since WordPress has auto-save feature, I want to see if my changes are saved in the revisions. I am using Classic Editor, however, my theme does not show the “Revision” info in the right panel for the custom post.

    So, I wonder if it is possible to find the revision from the database directly. It seems the revision link looks like this:

    https://www.datanumen.com/wp-admin/revision.php?revision=3545

    But what is the meaning of 3545 in the URL and how can I know the value for my post(giving the post ID).

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • threadi

    (@threadi)

    The link to the revisions will be visible as soon as revisions are available for the page/post. If there are none, the link does not exist.

    The ID at the end of the URL you mentioned is the post_id of the revision you want to access. You can get this ID from the posts table in the database (column id).

    Since the link to the revisions is not displayed, I doubt that there is a revision at all. This can happen if you are using a database optimization plugin that removes revisions or if you have disabled the use of revisions in wp-config.php.

    Of course it is annoying that you have a timeout when saving. My advice would be that you check your server settings in this regard. Possibly a timeout set there takes effect here, which should be set higher.

    Thread Starter chcw

    (@chcw)

    Hi, @threadi

    Thank you. I choose to start over everything, which seems simpler for my case. Thank you for your explanation of the system.

    • This reply was modified 1 year, 11 months ago by chcw.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Restore an unsaved post contents’ is closed to new replies.