register_post_type('review', array(
'label' => 'Reviews',
'description' => '',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'capability_type' => 'post',
'map_meta_cap' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'review', 'with_front' => true),
'query_var' => true,
'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','post-formats'),
'labels' => array (
'name' => 'Reviews',
'singular_name' => 'Review',
'menu_name' => 'Reviews',
'add_new' => 'Add Review',
'add_new_item' => 'Add New Review',
'edit' => 'Edit',
'edit_item' => 'Edit Review',
'new_item' => 'New Review',
'view' => 'View Review',
'view_item' => 'View Review',
'search_items' => 'Search Reviews',
'not_found' => 'No Reviews Found',
'not_found_in_trash' => 'No Reviews Found in Trash',
'parent' => 'Parent Review',
)
) ); }
add_action('init', 'cptui_register_my_cpt_latest_news');
function cptui_register_my_cpt_latest_news() {
register_post_type('latest_news', array(
'label' => 'Latest News',
'description' => '',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'capability_type' => 'post',
'map_meta_cap' => true,
'hierarchical' => true,
'rewrite' => array('slug' => 'Latest-News', 'with_front' => 1),
'query_var' => true,
'has_archive' => true,
'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','post-formats'),
'labels' => array (
'name' => 'Latest News',
'singular_name' => 'News Item',
'menu_name' => 'Latest News',
'add_new' => 'Add News Item',
'add_new_item' => 'Add New News Item',
'edit' => 'Edit',
'edit_item' => 'Edit News Item',
'new_item' => 'New News Item',
'view' => 'View News Item',
'view_item' => 'View News Item',
'search_items' => 'Search Latest News',
'not_found' => 'No Latest News Found',
'not_found_in_trash' => 'No Latest News Found in Trash',
'parent' => 'Parent News Item',
)
) ); }
add_action('init', 'cptui_register_my_taxes_review_types');
function cptui_register_my_taxes_review_types() {
register_taxonomy( 'review_types',array (
0 => 'review',
),
array( 'hierarchical' => true,
'label' => 'Review Types',
'show_ui' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'gambling-reviews' ),
'show_admin_column' => false,
'labels' => array (
'search_items' => 'Review Type',
'popular_items' => '',
'all_items' => '',
'parent_item' => '',
'parent_item_colon' => '',
'edit_item' => '',
'update_item' => '',
'add_new_item' => '',
'new_item_name' => '',
'separate_items_with_commas' => '',
'add_or_remove_items' => '',
'choose_from_most_used' => '',
)
) );
}
add_action('init', 'cptui_register_my_taxes_news_type');
function cptui_register_my_taxes_news_type() {
register_taxonomy( 'news-type',array (
0 => 'latest_news',
),
array( 'hierarchical' => true,
'label' => 'News Types',
'show_ui' => true,
'query_var' => true,
'rewrite' => array( 'slug' => 'news' ),
'show_admin_column' => false,
'labels' => array (
'search_items' => 'News Article',
'popular_items' => '',
'all_items' => '',
'parent_item' => '',
'parent_item_colon' => '',
'edit_item' => '',
'update_item' => '',
'add_new_item' => '',
'new_item_name' => '',
'separate_items_with_commas' => '',
'add_or_remove_items' => '',
'choose_from_most_used' => '',