Wordpress Category & Sub Category Help Needed

Discussion in 'PHP' started by DylanM, Oct 22, 2009.

  1. #1
    I would like to have a menu consisting of categories and, when hovered over shows shows sub categories. Because of the nature of my theme, I am not making use of the sidebar.php , instead I have pasted this in my header.php:

    <div id="sidebar">
    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) ?>
    </div>


    Ive added a custom php widget to my "sidebar". In that widget is the following code:


    <?php wp_list_categories('title_li='); ?>

    This is as far as I have got, but need help getting it to hover and display the correct sub category.
     
    DylanM, Oct 22, 2009 IP
  2. Gungz

    Gungz Peon

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you use the sidebar, will the sub-categories display correctly?
     
    Gungz, Oct 22, 2009 IP