Forums

2.5 Category ID's? (7 posts)

  1. iamglenn
    Member
    Posted 4 years ago #

    Looking to grab my category ID's can't seem to find them in the admin panel, help please.

  2. kaykoral
    Member
    Posted 4 years ago #

    Urm. Manage >> Categories.

    Hover over which ever category and you'll see the ID in the URL.

    The only reason I can't fanthom with 2.5 categories is that the ID took a big jump. I created a new category and it gave it the number 90. =|

  3. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    iamglenn,
    You could also install this plugin which puts the ID's back in the admin display:
    http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/

    fantasycrusader,
    The jump in the ID's for categories is due to the newish taxonomy system. Both Categories and Tags are stored in the same table in the database (wp_terms). Lets say, you add a new category who's ID ends up being "8". Then you ad a new post with 10 new tags for it. Then you add another new category. The ID for the second category will be "19" instead of the expected "9".

  4. unions8
    Member
    Posted 4 years ago #

    And is it possible to change the Category IDs? Thanx,
    Stepaan

  5. Michael Fields
    Theme Wrangler
    Posted 4 years ago #

    unions8,
    Why would you want to change a category's ID#? This can cause ripple effects throughout your blog that will be hard to debug. WordPress offers no tool to change the ID of a category, post or other database entry. It is (for all intensive purposes) unnecessary.

  6. Chanpory
    Member
    Posted 4 years ago #

    mfields, it'd actually be useful to change the category ID number, because of the way multiple categories work with posts.

    From my understanding, if a post is assigned more than one category, WordPress will assign the category with the lowest ID number as the primary category. Currently, there is no way to assign a primary category to a post, which is quite frustration.

  7. Bart van Poll
    Member
    Posted 3 years ago #

    @Chanpory: Yes, this would indeed be very very helpful!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.