Title: Get current category
Last modified: August 22, 2016

---

# Get current category

 *  Resolved [rospo85](https://wordpress.org/support/users/rospo85/)
 * (@rospo85)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/get-current-category-2/)
 * Hi!
    Wounderfull plugin, work fine and really usefull!! Just one question… I 
   have added to my menu a category (let’s call it A) with subcategories (B and 
   C). Now, when i navigate to category A the voice in the menu get the class .current-
   menu-item. When i navigate to category B the A voice have the class .current-
   menu-parent and che voice B have the class .current-menu-item. PERFECT!!! But
   when i go in a single article from the category B (displayed with content-single.
   php theme file) the voice in the menu (both A and B) have no class! I need the
   same class (or some other class) for the menu rendering! How i can add them? 
   Thanks!!!!
 * [https://wordpress.org/plugins/custom-menu-wizard/](https://wordpress.org/plugins/custom-menu-wizard/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/get-current-category-2/#post-5420474)
 * In the Fallbacks section there is a checkbox option for _Try items marked as 
   Parent of Current_ : if you haven’t already, could you try setting that option?
 *  Thread Starter [rospo85](https://wordpress.org/support/users/rospo85/)
 * (@rospo85)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/get-current-category-2/#post-5420530)
 * not working… any other idea?
 *  Thread Starter [rospo85](https://wordpress.org/support/users/rospo85/)
 * (@rospo85)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/get-current-category-2/#post-5420532)
 * GOT IT!
    I have a little problem in the css code! Thanks and… i confirm! It’s
   a great plugin!!!!!!
 *  Plugin Author [wizzud](https://wordpress.org/support/users/wizzud/)
 * (@wizzud)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/get-current-category-2/#post-5420534)
 * Good, I’m glad, because I was out of options. Enjoy!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Get current category’ is closed to new replies.

 * ![](https://ps.w.org/custom-menu-wizard/assets/icon-256x256.png?rev=1381901)
 * [Custom Menu Wizard Widget](https://wordpress.org/plugins/custom-menu-wizard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-menu-wizard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-menu-wizard/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-menu-wizard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-menu-wizard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-menu-wizard/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [wizzud](https://wordpress.org/support/users/wizzud/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/get-current-category-2/#post-5420534)
 * Status: resolved