Title: Wrong Category ID
Last modified: August 21, 2016

---

# Wrong Category ID

 *  [5il3nt](https://wordpress.org/support/users/5il3nt/)
 * (@5il3nt)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wrong-category-id/)
 * When i look at the category id in my admin panel i see this:
 * [http://page/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_](http://page/wp-admin/edit-tags.php?action=edit&taxonomy=category&tag_)**
   ID=214**&post_type=post
 * But on the category page the number of the category is 202 not 214. I don’t know
   why? I use this php code to show the category id number on the page:
 *     ```
       if(is_category() || is_single()){
        $category = end(get_the_category());
        $current =$category->cat_ID;
        $current_name = $category->cat_name;
       }
       echo $current_name . " has id ".$current;
       ```
   
 * I don’t know how to fix it… 🙁

Viewing 1 replies (of 1 total)

 *  [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * (@vtxyzzy)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/wrong-category-id/#post-4100105)
 * ‘cat_ID’ contains the term ID. Since a given term can be used in multiple taxonomies,
   what you need to display is the ‘term_taxonomy_id’.

Viewing 1 replies (of 1 total)

The topic ‘Wrong Category ID’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [vtxyzzy](https://wordpress.org/support/users/vtxyzzy/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/wrong-category-id/#post-4100105)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
