WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Changing cat id#s in phpmyadmin (6 posts)

  1. lukemiddleton
    Member
    Posted 7 years ago #

    Recently, while trying to reorder category links in my sidebar, decided to go into phpmyadmin and reorder them there. At the time, the highest cat # I had was 30 or so. Now, categories I create jumped to over 100. Why, and is this a problem? One category I created, when I moved old posts there, they completely (and I mean completely) disappeared. I deleted that category (a triple-digit one) and have run various tests with other new, triple-digit categories that have all seemed to work fine. Since, I have found a plugin that will order my categories for me, so I'm all set there. Just wondering if I need to be concerned about what I did inside mysql and if I need to undo or check things, how to do that. Anyone's time is much appreciated.

  2. moshu
    Member
    Posted 7 years ago #

    trying to reorder category links in my sidebar
    For that you don't need to get into the DB - you can use parameters in the template tag(s).

    Disappearing posts might be related to the fact that the relation between categories and posts is stored in the "post2cat" table of the database - and you didn't say anything about modifying the data there.

    And yes, you should be concerned: if you don't know 200% sure what are you doing in the database - better leave it alone :)

  3. lukemiddleton
    Member
    Posted 7 years ago #

    I never touched "post2cat" and have no idea what it is. And the disappearing posts happened in a newly created category, after I did the renumbering, which makes it more confusing to me.

    Ok, I am concerned, what do I need to do??? Is there a reset to it or something? Delete all my categories (through admin panel) and then start-over?

  4. moshu
    Member
    Posted 7 years ago #

    I don't know. I am not a MySQL expert - that's why I don't go into it and mess around with stuff.
    Maybe your blog is fine even after the changes you made. And - hopefully - you made a backup of your DB before doing anything in it: that's what every tutorial says on the first line. Backup, backup!
    Good luck!

  5. lukemiddleton
    Member
    Posted 7 years ago #

    Thanks for your time

  6. lukemiddleton
    Member
    Posted 7 years ago #

    Anyone else? Do I need to "reset" something or delete all my categories and start over or.......?

Topic Closed

This topic has been closed to new replies.

About this Topic