WordPress.org

Support

Support » Miscellaneous » Reseting news ID?

Reseting news ID?

  • This may sound a little retarded, lol, but I was testing out my wordpress and instead of “editing” the first post (like I should’ve) I kept messing around with posts by deleting and writing, lol. (It’s obvious I’m new to wordpress and love it, lol). But I was wondering when you click it says ?p=4 (that’s where mine starts at number 4) Can I reset it back to 1? Or do I have to remove ALL my files and re-upload EVERYTHING, again in order to get it back to 1?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mark (podz)
    Support Maven

    @podz

    Is there a reason for the order?

    You could reset to #1, but if you later save a draft and in the meantime publish a post the publish will have greater number so the draft will have a lessre number but come later.
    If you delete a post the order will be affected too.

    You would need to go into phpmyadmin, find the wp_posts table and alter the ID there.

    You would need to go into phpmyadmin, find the wp_posts table and alter the ID there.

    There’s also wp_post2cat, where a post is tied to one or more categories. And wp_postmeta, where any custom field or WordPress-attached meta information to posts or Pages is saved. And wp_comments — of course!

    Unless you have an extremely important reason for keeping your post IDs so orderly and you *really* know what you’re doing, I would not recommend changing them.

    Thanks 🙂

    Since I’m new to wp, and other people have reccommended me to just leave it I will. It’s not *that* important … I now know for the next time 😀

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reseting news ID?’ is closed to new replies.