• twlack

    (@twlack)


    I’m relatively new to WP. About 2 years ago I purchased a site license for Quick Menus from opencube.com and I’m very happy with it.

    I’d like to have WP menus work the Quick Menus drop downs. What I need seems pretty simple, here it is:

    This line in my theme:

    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>

    Sends this to the browser:

    <li class="page_item page-item-2"><a href="http://culinarytraveler.com/about/" title="About">About</a></li>
    <li class="page_item page-item-7 current_page_item"><a href="http://culinarytraveler.com/portfolio/" title="Portfolio">Portfolio</a></li>
      <ul>
       <a href="http://culinarytraveler.com/portfolio-child/" title="Portfolio">Portfolio Child</a></li>
       </ul>
    <li class="page_item page-item-19"><a href="http://culinarytraveler.com/contact/" title="Contact">Contact</a></li>

    But I need the list to be output as <div>:

    <div style="width:220px;">
    <a href="http://culinarytraveler.com/about/" title="About">About</a>
    <a href="http://culinarytraveler.com/portfolio/" title="Portfolio">Portfolio</a>
      <div style="width:200px;">
       <a href="http://culinarytraveler.com/portfolio-child/" title="Portfolio">Portfolio Child</a>
      </div>
    <a href="http://culinarytraveler.com/contact/" title="Contact">Contact</a>
    </div>

    Where would I begin to look for this formatting? Is it different with each theme or is this WP coding?

    thanks,
    Tim

    P.S. this is the first time I tried to enter code in this forum, if it doesn’t show right I’ll post this again.

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    wp_list_pages is a native WP template tag. You might want to look at building your own page menu using get_pages instead.

Viewing 1 replies (of 1 total)
  • The topic ‘CSS menu (open cube)’ is closed to new replies.