// Register custom post types
add_action('init', 'pyre_init');
function pyre_init() {
register_post_type(
'portfolio',
array(
'labels' => array(
'name' => 'Portfolio',
'singular_name' => 'Portfolio'
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'portfolio-post'),
'supports' => array('title', 'editor', 'thumbnail','comments'),
'can_export' => true,
)
);
// let's register taxonomies for portfolio custom posts
//register_taxonomy('portfolio_category', 'portfolio', array('hierarchical' => true, 'label' => 'Categories', 'query_var' => true, 'rewrite' => true));
register_taxonomy('portfolio_type', 'portfolio', array('hierarchical' => true, 'label' => 'Types', 'query_var' => true, 'rewrite' => true));
}
'rewrite' => array('slug' => 'portfolio-post'),