_item’ => __(‘View Portfolio Item’),
‘search_items’ => __(‘Search Portfolio Items’),
‘not_found’ => __(‘No portfolio items found’),
‘not_found_in_trash’ => __(‘No portfolio items found in Trash’),
‘parent_item_colon’ => ”
);
$args = array(
‘labels’ => $labels,
‘public’ => true,
‘publicly_queryable’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘query_var’ => true,
‘rewrite’ => true,
‘capability_type’ => ‘post’,
‘hierarchical’ => false,
‘menu_position’ => null,
‘supports’ => array(‘title’,’editor’,’thumbnail’)
);
register_post_type(‘portfolio’,$args);
}
Was this code snippet helpful?
YesNo