title: custom post type is taking main post category automatically how to remove that
body: <p>I have changed my default category in setting. When i made a new custom post type in wordpress, it works fine but it taking default category from previously made (main)post category. And also those categories i made later in custom post type is showing in (main)post category list. Can someone help me.</p>
  
  <p>My code is below.</p>
  
  <pre><code>add_action( 'init', 'create_posttype_portfolio' );
  function create_posttype_portfolio() {
      register_post_type('portfolios',
      array(
      'description' =&gt; 'Portfolio custom post type',
          'show_ui' =&gt; true,
          'exclude_from_search' =&gt; false,
          'labels' =&gt; array(
              'name' =&gt; 'Portfolios',
              'singular_name' =&gt; 'Portfolio',
              'add_new' =&gt; 'Add New Portfolio',
              'add_new_item' =&gt; 'Add New Portfolio',
              'edit' =&gt; 'Edit Portfolio',
              'edit_item' =&gt; 'Edit Portfolio',
              'new_item' =&gt; 'New Portfolio',
              'view' =&gt; 'View Portfolios',
              'view_item' =&gt; 'View Portfolio',
              'search_items' =&gt; 'Search Portfolios',
              'not_found' =&gt; 'No Portfolios found',
              'not_found_in_trash' =&gt; 'No Portfolios found in Trash',
              'parent' =&gt; 'Parent Portfolio',
          ),
          'public' =&gt; true,
          'supports' =&gt; array('title','editor','revisions','thumbnail','author','thumbnail'),
          'taxonomies' =&gt; array('category', 'post_tag'),
          'rewrite' =&gt; array('slug' =&gt; 'Portfolios', 'with_front' =&gt; false),
      )
  );
  }
  </code></pre>
  
  <p>Thanks.</p>