Title: Replicating Menu Functionality
Last modified: August 30, 2016

---

# Replicating Menu Functionality

 *  [theadvoor](https://wordpress.org/support/users/theadvoor/)
 * (@theadvoor)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/replicating-menu-functionality/)
 * The concept is the following: I need a new post type which will organise another
   post type into a hierarchical structure ( as well as store additional information
   which is why I cant just use the menu system ).
 * What I’m trying to do its replicate how the WordPress menu functionality works,
   and then extend on it. The two sections I need to replicate is the accordion 
   on the left hand side which allows you to view and search different post types(
   will need to be restricted to only one post type), and the drag and drop menu
   functionality to modify the order and hierarchy on the right.
 * I’ve already created the new post type. The next step is to get the search box
   to display on the new custom post type; I’ve located the following code which
   I believe outputs the search box:
 *     ```
       <form id="nav-menu-meta" class="nav-menu-meta" method="post" enctype="multipart/form-data">
       			<input type="hidden" name="menu" id="nav-menu-meta-object-id" value="<?php echo esc_attr( $nav_menu_selected_id ); ?>" />
       			<input type="hidden" name="action" value="add-menu-item" />
       			<?php wp_nonce_field( 'add-menu_item', 'menu-settings-column-nonce' ); ?>
       			<?php do_accordion_sections( 'nav-menus', 'side', null ); ?>
       		</form>
       ```
   
 * However this does not show up. Changing the ‘nav-menus’ several different settings
   did not work at all. The function’s documentation is not really that helpful :
   [https://codex.wordpress.org/Function_Reference/do_accordion_sections](https://codex.wordpress.org/Function_Reference/do_accordion_sections)
 * Any help getting this (and then the menu functionality) to work would be appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [theadvoor](https://wordpress.org/support/users/theadvoor/)
 * (@theadvoor)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/replicating-menu-functionality/#post-6450664)
 * Here is the end result of what I want to achieve: [Screenshot](http://postimg.org/image/dssbhmraf/)
 * Hopefully this will give you a better idea of what needs to be done.
 *  [VisualData](https://wordpress.org/support/users/visualdata/)
 * (@visualdata)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/replicating-menu-functionality/#post-6450945)
 * have you tried pods? it is possible to extend page with custom fields, or to 
   create a new custom post type with hierarchical structure. if you need navigation
   menu, it is probably easier to extend page.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Replicating Menu Functionality’ is closed to new replies.

## Tags

 * [nav](https://wordpress.org/support/topic-tag/nav/)
 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [replicate](https://wordpress.org/support/topic-tag/replicate/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [VisualData](https://wordpress.org/support/users/visualdata/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/replicating-menu-functionality/#post-6450945)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
