Support » Fixing WordPress » Dynamic Menu

  • I am creating a menu and I know the code:

    <?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&exclude=23,49,64'); ?>

    is what i use when creating a menu but all I want to do is create a dynamic menu for one menu item, all children of one item is all I want to list, is there something something like : All children of page “services” be listed?
    Maybe like….
    <?php wp_list_pages('services_li=&depth=2&sort_column=menu_order&exclude=23,49,64'); ?>

    That doesn’t work but its how I might think it would…


Viewing 5 replies - 1 through 5 (of 5 total)
  • <?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&include=xx'); ?>

    I’m not totally sure here, but using the first bit of code you pasted to display a menu, couldn’t that work…..just including only the page ‘services’ by ID, rather than excluding the rest of the pages?

    I will give it a try..

    may help, if I didn’t get it quite right

    Nope, that did not work.

    Okay, I was accidentally changing the wrong code, so techincally it worked, but heres the problem…

    <li><a href="/index.php">Home Page</a></li>
     			<li class="cnav"><a href="/request-estimate">Free Estimate</a></li>
    			<?php wp_list_pages('title_li=&depth=2&sort_column=menu_order&include=22'); ?>
    			<li><a href="/windows-and-doors">Windows and Doors </a></li>
                <li><a href="/roof-replacment">Roof Replacement  </a></li>
                <li><a href="/mold-prevention">Mold Prevention</a></li>
    			<li><a href="/testimonials">Testimonials</a></li>
    			<li><a href="/installation-pictures">Pictures of Our Installation</a></li>
    			<li><a href="/about-us">About Us</a></li>
    			<li><a href="/videos">Watch Our Videos</a></li>
                <li><a href="/faq">FAQ</a>	</li>

    That is my list, when i mouse over the dynamic item it won’t list its subpages…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Dynamic Menu’ is closed to new replies.