BBP Features Custom Post Type
// Register Custom Post Type
function features_custom_post_type() {
$labels = array(
'name' => 'Features',
'singular_name' => 'Feature',
'menu_name' => 'Features',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Features',
'view_item' => 'View Feature',
'add_new_item' => 'Add New Feature',
'add_new' => 'Add New',
'edit_item' => 'Edit Feature',
'update_item' => 'Update Feature',
'search_items' => 'Search Feature',
'not_found' => 'Feature Not Found',
'not_found_in_trash' => 'Feature Not Found in Trash',
);
$args = array(
'label' => 'destination_feature',
'description' => 'Features for Buffalo Bayou Destinations',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 20,
'menu_icon' => '',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'destination_feature', $args );
}
// Hook into the 'init' action
add_action( 'init', 'features_custom_post_type', 0 );