• Resolved thenut

    (@thenut)


    Hello all. Here is what I need:
    I am using WP as a CMS, with category system and posts linked to them.
    Basically, I have list of categories and sub categories. When user on the category template, on the side bar, I am using wp_list_cat which works great, with the class “current_cat” and such, to indicate the user exactly where he/she are. But when clicking on the post link from category template to single post template, although I can still get the wp_list_cat function to work after getting the $cat for this post, I loose the classes in the list to indicate in which category this post is. Any idea on how I can get this one to work?
    Any suggestions?

Viewing 1 replies (of 1 total)
  • Thread Starter thenut

    (@thenut)

    If any one is interested:
    I have found the sulotion. I hacked the wp_list_categories to get another argument and on line 246 I added :

    if (is_single())
    $r[‘current_category’] = $cat;

    where $cat is the seconed arg this function gets.
    Tada.

Viewing 1 replies (of 1 total)
  • The topic ‘Show sidebar with top parent category’ is closed to new replies.