Wordpress Menu Help

Discussion in 'WordPress' started by WACMan, Feb 3, 2009.

  1. #1
    Hopefully I am not the only one who needs this but sure is hard to find answer :D.

    I want to list all my pages in the nav of my static home page. When you click on a page THEN you will see all the child menus for that page only.

    I do not want the child menus displayed on the home page. I have written the code that works great for displaying the child menus but the main menu will not display anything.

    Little Help?


    This works great for displaying the child menus-why can't I see pages on home page?


    <?php
    if ($post->post_parent) {
     $parent = $post->post_parent;
    } else {
     $parent = $post->ID;
    }
    wp_list_pages("title_li=&child_of=$parent");
    ?>
    Code (markup):
     
    WACMan, Feb 3, 2009 IP
  2. WACMan

    WACMan Peon

    Messages:
    253
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    No One?

    Would even pay for a solution!

    Using WordPress 2.7 - standard coding - anyone?
     
    WACMan, Feb 3, 2009 IP