Title: wp_list_pages function&#8230; not working?
Last modified: August 19, 2016

---

# wp_list_pages function… not working?

 *  Resolved [syncbox](https://wordpress.org/support/users/syncbox/)
 * (@syncbox)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/wp_list_pages-function-not-working/)
 * 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.

Viewing 1 replies (of 1 total)

 *  Thread Starter [syncbox](https://wordpress.org/support/users/syncbox/)
 * (@syncbox)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/wp_list_pages-function-not-working/#post-1279847)
 * Doh! sort_column=menu_order…. DOH!

Viewing 1 replies (of 1 total)

The topic ‘wp_list_pages function… not working?’ is closed to new replies.

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [wp_list_pages](https://wordpress.org/support/topic-tag/wp_list_pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [syncbox](https://wordpress.org/support/users/syncbox/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/wp_list_pages-function-not-working/#post-1279847)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
