WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Can I Restore A Deleted Post With The Same Cat number?

[Resolved] Can I Restore A Deleted Post With The Same Cat number?

  • Once upon a time, I started a blog. However, I changed hosting accounts and (through my own fault) lost all the content and had to start over.

    QUESTION: Is there a way to restore a missing page? I have the original content which can be reposted, but I would like to assign the “old” number to the post.

    EXAMPLE:
    http://betterbrainsonline.com/?cat=74.

    The reason: This appears in search engines and I’d like the people who are searching for it to find it.

    I’m thinking the easiest way would be to post the item again and when WordPress automatically assigns a number, I can go back in and change the number.

    Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    @esmi

    Forum Moderator

    You can’t specify a category or post id. They’re created automatically in WordPress via MySql. But you could try installing a redirection plugin and redirect all calls to the old url to the new one.

    In your example you are referencing the category id. I assume you meant /?page_id=74?

    I’m thinking the easiest way would be to post the item again and when WordPress automatically assigns a number, I can go back in and change the number

    WordPress is assigning a unique ID for everything. Changing the permalink will not change the ID value of the post in the database.

    (I have not used this)
    You could try http://wordpress.org/extend/plugins/redirection/
    or
    You could edit your 404 page to say, “are you looking for * article?” etc. and have your more popular articles re-listed.

    This is why having a pretty permalink structures is a good idea when you can.

    @ esmi sorry, I was looking for that plugin link while you beat me to it!

    Thanks to you both …. I think that will accomplish my goal.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Can I Restore A Deleted Post With The Same Cat number?’ is closed to new replies.