WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can I Restore A Deleted Post With The Same Cat number? (4 posts)

  1. docteurg
    Member
    Posted 4 years ago #

    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?

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  3. racer x
    Member
    Posted 4 years ago #

    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!

  4. docteurg
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic