Title: sub menu
Last modified: May 22, 2019

---

# sub menu

 *  [AJ's WebCreations](https://wordpress.org/support/users/dna-webdesign/)
 * (@dna-webdesign)
 * [7 years ago](https://wordpress.org/support/topic/sub-menu-45/)
 * Not sure were to put this. I can not figure out the other support forums (been
   gone awhile). Any way my issue. Building a custom theme, adding custom post types
   everything I had added works fine but there is one option I can not get to work
   that is the parent and page attributes.
    If I am correct it is something set 
   when I set up the register_post_type. The code I am using is below.
 *     ```
        // Artist Post Type
         register_post_type('artist', array(
           'supports' => array('title', 'editor', 'thumbnail'),
       	'has_archive' => true,
           'public' => true,
       	'hierarchical' => true,
       	'page-attributes' => true,
           'labels' => array(
             'name' => 'Artists',
             'add_new_item' => 'Add New Artist',
             'edit_item' => 'Edit Artist',
             'all_items' => 'All Artists',
             'singular_name' => 'Artist'
           ),
           'menu_icon' => 'dashicons-admin-customizer'
         ));	
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsub-menu-45%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Joy](https://wordpress.org/support/users/joyously/)
 * (@joyously)
 * [7 years ago](https://wordpress.org/support/topic/sub-menu-45/#post-11564950)
 * If you would use a plugin for your custom post types instead of the theme, it
   would work much better. Post types don’t belong in a theme anyway.
    Try Custom
   Post Type UI. You can change your options and test it and once it is the way 
   you want, use its Tools > Get Code feature to spit out the code needed for those
   settings. (But put the custom post type stuff in a plugin, preferably a must-
   use plugin, and then the theme can be switched at any time.)
 *  Thread Starter [AJ's WebCreations](https://wordpress.org/support/users/dna-webdesign/)
 * (@dna-webdesign)
 * [7 years ago](https://wordpress.org/support/topic/sub-menu-45/#post-11566146)
 * This is in a must use plug in.

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

The topic ‘sub menu’ is closed to new replies.

## Tags

 * [page attributes](https://wordpress.org/support/topic-tag/page-attributes/)
 * [parent page](https://wordpress.org/support/topic-tag/parent-page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [AJ's WebCreations](https://wordpress.org/support/users/dna-webdesign/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/sub-menu-45/#post-11566146)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
