title: In wordpress add page attribute to custom post type
body: <p>I have created custom post type for my project and I want to add custom post type with page attribute. I have done this with following code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>function register_pt_boutique()
  {
      register_post_type('boutique', array(
          'label'           =&gt; 'Boutiques',
          'description'     =&gt; 'This post type represents the featured items on the homepage.',
          'public'          =&gt; true,
          'show_ui'         =&gt; true,
          'show_in_menu'    =&gt; true,
          'capability_type' =&gt; 'post',
          'map_meta_cap'    =&gt; true,
          'hierarchical'    =&gt; true,
          // 'rewrite' =&gt; array('slug' =&gt; 'featured', 'hierarchical' =&gt; true, 'with_front' =&gt; false),
          'query_var'       =&gt; true,
          'has_archive'     =&gt; true,
          'menu_position'   =&gt; '7',
          'supports'        =&gt; array('title', 'page-attributes','thumbnail'),
          // 'taxonomies' =&gt; array('page-attributes'),
          'labels'          =&gt; array(
              'name'               =&gt; 'Boutiques',
              'singular_name'      =&gt; 'Boutique',
              'menu_name'          =&gt; 'Boutiques',
              'add_new'            =&gt; 'Add Boutique',
              'add_new_item'       =&gt; 'Add New Boutique',
              'edit'               =&gt; 'Edit',
              'edit_item'          =&gt; 'Edit Boutique',
              'new_item'           =&gt; 'New Boutique',
              'view'               =&gt; 'View Boutique',
              'view_item'          =&gt; 'View Boutique',
              'search_items'       =&gt; 'Search Boutique',
              'not_found'          =&gt; 'No Boutique',
              'not_found_in_trash' =&gt; 'No Boutique Found in Trash',
              'parent'             =&gt; 'Parent Boutique',
          )
      ));
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Using this code page attribute option come with two fields ("parent" and "order") at admin side but without "template" field option. I want page attribute with "template" field. </p>