• 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 to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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

    (@dna-webdesign)

    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.