Title: Multi-Level navigation menus
Last modified: August 19, 2016

---

# Multi-Level navigation menus

 *  [dennymathews](https://wordpress.org/support/users/dennymathews/)
 * (@dennymathews)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/multi-level-navigation-menus/)
 * Hi ~
 * I’m using a free theme where I want to implement the drop-down child menus in
   the nav bar. I’ve tried the following code to display the child pages as a drop-
   down but it doesn’t work.
 *     ```
       <?php
         if($post->post_parent)
         $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
         else
         $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
         if ($children) { ?>
         <ul>
         <?php echo $children; ?>
         </ul>
         <?php } ?>
       ```
   
 * I don’t know if my CSS is the problem or maybe the PHP code. Can someone help
   me?

Viewing 1 replies (of 1 total)

 *  [sbiehle](https://wordpress.org/support/users/sbiehle/)
 * (@sbiehle)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/multi-level-navigation-menus/#post-930528)
 * Have you tried using the CSS on [Darren Hoyt’s example](http://www.darrenhoyt.com/2008/02/12/creating-two-tiered-conditional-navigation-in-wordpress/)
   of this?

Viewing 1 replies (of 1 total)

The topic ‘Multi-Level navigation menus’ is closed to new replies.

## Tags

 * [child menu](https://wordpress.org/support/topic-tag/child-menu/)
 * [drop down menu](https://wordpress.org/support/topic-tag/drop-down-menu/)
 * [multi-level menu](https://wordpress.org/support/topic-tag/multi-level-menu/)
 * [navigation-menu](https://wordpress.org/support/topic-tag/navigation-menu/)
 * [parent-child menu](https://wordpress.org/support/topic-tag/parent-child-menu/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [sbiehle](https://wordpress.org/support/users/sbiehle/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/multi-level-navigation-menus/#post-930528)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
