WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] wp_list_pages function... not working? (2 posts)

  1. syncbox
    Member
    Posted 4 years ago #

    I have the following in my sidebar.php file

    <div class="snav" id="sn1"><?php wp_list_pages('child_of=281&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn2"><?php wp_list_pages('child_of=288&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn3"><?php wp_list_pages('child_of=298&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn4"><?php wp_list_pages('child_of=299&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn5"><?php wp_list_pages('child_of=300&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn6"><?php wp_list_pages('child_of=301&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn7"><?php wp_list_pages('child_of=302&sort_order=menu_column&title_li='); ?></div>
    <div class="snav" id="sn8"><?php wp_list_pages('child_of=24&sort_order=menu_column&title_li='); ?></div>

    I originally was using unordered list tags rather than divs around the wp_list_pages() functions but the generated source was showing me a nested unordered list within... so I put divs instead and now there's nothing...

    But in both cases, the function isn't generating the page list items. child_of is a param for the function, right? It's always worked before.

    I'm trying to build a "fly out" or "dropdown" submenu that will display when mousing over the parent list items.

    Just curious why this wouldn't work. I'd show a URL but it's behind authorization, so I can't.

  2. syncbox
    Member
    Posted 4 years ago #

    Doh! sort_column=menu_order.... DOH!

Topic Closed

This topic has been closed to new replies.

About this Topic