WordPress dynamic menu issue

Discussion in 'WordPress' started by GLD, Jul 16, 2007.

  1. #1
    I am trying to create a dynamic menu for a WP theme, similar to this one.

    However, when I use the following code:
    
    <ul>
    <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' ); ?>
    </ul>
    
    PHP:
    and run the page I get this:


    
    <ul>
    <li class="page_item current_page_item"><a href="?page_id=1" title="Forum">Page 1</a></li>
    <li class="page_item"><a href="?page_id=2" title="Info">Page 2</a></li>
    <li class="page_item"><a href="?page_id=3" title="Portfolio">Page 2</a></li>
    </ul>
    
    HTML:

    It's quite bizarre - surely the class of Page 1 (the selected page) should be "current_page_item", and not "page_item".

    Can anyone shed some light on this problem?
     
    GLD, Jul 16, 2007 IP