WordPress.org

Ready to get started?Download WordPress

Forums

Reseting news ID? (4 posts)

  1. LeLLow
    Member
    Posted 7 years ago #

    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?

  2. Mark (podz)
    Support Maven
    Posted 7 years ago #

    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.

  3. Kafkaesqui

    Posted 7 years ago #

    "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.

  4. LeLLow
    Member
    Posted 7 years ago #

    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 :D

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags