Title: WordPress Custom Menu
Last modified: August 19, 2016

---

# WordPress Custom Menu

 *  [Mehmet](https://wordpress.org/support/users/mhmtozek/)
 * (@mhmtozek)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/wordpress-custom-menu/)
 * Using this code,
    `wp_nav_menu( array('theme_location' => 'main', 'container'
   => false));`
 * I can return menu, but it also extracts
    -  and
 * Is there any way to exclude
    -  codes as well?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Mehmet](https://wordpress.org/support/users/mhmtozek/)
 * (@mhmtozek)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/wordpress-custom-menu/#post-1849242)
 * Seems my code has been stripped out. Here what I actually wanted to write
 * Using this code,
    wp_nav_menu( array(‘theme_location’ => ‘main’, ‘container’ 
   => false));
 * I can return menu, but it also extracts
    `<ul> and </ul>`
 * Is there any way to exclude ul before and after menu?

Viewing 1 replies (of 1 total)

The topic ‘WordPress Custom Menu’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [Mehmet](https://wordpress.org/support/users/mhmtozek/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/wordpress-custom-menu/#post-1849242)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
