Title: [Plugin: Collapsing Categories] Wrong active category
Last modified: August 20, 2016

---

# [Plugin: Collapsing Categories] Wrong active category

 *  [Nessdufrat](https://wordpress.org/support/users/nessdufrat/)
 * (@nessdufrat)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-wrong-active-category/)
 * Strange thing happening…
    I’m beta-testing my website soon to be launched, and
   I realized when I’m on an author page (not any author page, at the moment just
   one of them), the collapsible category is displaying as active category a category
   which has nothing to do with the author page (which is not assigned to any category).
   Why is that so? I can’t spot any difference in the code, except the class name
   of the authors that change (obviously), and one has more articles than the other.
   But I tried without showing the articles, and it’s the same.
 * So, my question is : how can I change that? I don’t want to have a random category
   expanding when a user is on an author’s page…
 * Another solution would be to manually tricking the plugin to think when it’s 
   on the author’s page (template page), it’s on a specific category (existing, 
   if possible. If not, that’s ok too).
    I tried assigning the page to a category,
   it worked (I mean, the page WAS assigned to the category), but it didn’t change
   anything for the plugin, it still thought it was on this other random category
   which has nothing to do with the page.
 * Any advice would be great, thanks !!!
 * [http://wordpress.org/extend/plugins/collapsing-categories/](http://wordpress.org/extend/plugins/collapsing-categories/)
 * I believe the problem is that the id of the author is 4, which is also the id
   of a parent category (funnily enough, the one showing up, how convenient). Is
   there a workaround, or do I have to change the user ID ?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Nessdufrat](https://wordpress.org/support/users/nessdufrat/)
 * (@nessdufrat)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-wrong-active-category/#post-3112968)
 * Alright, can’t edit the topic anymore…
    I finally decided to create a new user
   and assign all the articles from the “faulty” user, since it was the only way
   I could change the ID (I’m now realizing I could have changed it in the database…
   anyway). It did the trick. BUT : I think this issue should be investigated in
   a next version, since it’s strange and it can be really time consuming to find
   out what’s wrong. BTW, great plugin.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Collapsing Categories] Wrong active category’ is closed to new
replies.

 * ![](https://ps.w.org/collapsing-categories/assets/icon-256x256.gif?rev=2886482)
 * [Collapsing Categories](https://wordpress.org/plugins/collapsing-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collapsing-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collapsing-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/collapsing-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collapsing-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collapsing-categories/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Nessdufrat](https://wordpress.org/support/users/nessdufrat/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-collapsing-categories-wrong-active-category/#post-3112968)
 * Status: not resolved