Support » Themes and Templates » Subcategories, pages & hihlighting

  • n37


    Hi, i’m using WP as a CMS but having some troubles.

    First of all, my page navigation:


    I’ve got a page called articles. In page.php i’ve got some code to get in that page only the articles category posts:

    if( is_page('articles') ) query_posts('category_name=articles');

    In the sidebar.php i’ve got some code too, to show only the articles (ID=1) subcategories:

    $this_cat = get_category($cat);
    if( is_page('articulos') || is_category('articulos') || $this_cat->category_parent == 1 ) :

    Th problem starts now, when i go to the page articles and then to some subcategory. The page li loses his .current_page_item and even if go to a post from there, the .current-cat dissappears too…

    Any solution? TIA.

Viewing 3 replies - 1 through 3 (of 3 total)
  • n37


    No one can provide some help on that? ;/



    i´m now searching for a long time … there´s no help at subcategories. ever tried to just call the title of a subcategory ? … i just can´t find anything…

    We can try to hack the ‘wp_list_categories’ function, but that’s not so much elegant indeed… 😡

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subcategories, pages & hihlighting’ is closed to new replies.