ICH! ›› Icon Boxen
// Register Custom Post Type
function custom_post_type() {
$labels = array(
'name' => 'Icon Boxes',
'singular_name' => 'Icon Box',
'menu_name' => 'Icon Boxes',
'parent_item_colon' => 'Parent Item:',
'all_items' => 'All Items',
'view_item' => 'View Item',
'add_new_item' => 'Add New Item',
'add_new' => 'Add New',
'edit_item' => 'Edit Item',
'update_item' => 'Update Item',
'search_items' => 'Search Item',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
);
$args = array(
'label' => 'icon_box',
'description' => 'Icon Boxes auf der Startseite',
'labels' => $labels,
'supports' => array( 'title', 'editor', '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' => 5,
'menu_icon' => 'dashicons-format-aside',
'can_export' => true,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'icon_box', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type', 0 );