Add Category support to a CPT
<?php
// Code goes in child theme’s functions.php.
// Add Category support to CPT
add_action( 'init', 'sk_add_category_portfolio' );
function sk_add_category_portfolio() {
register_taxonomy_for_object_type( 'category', 'portfolio' );
}