postcards
post cards post type for daniel nauke
// Register Custom Post Type function postcards() { $labels = array( 'name' => _x( 'postcards', 'Post Type General Name', 'btc_domain' ), 'singular_name' => _x( 'postcard', 'Post Type Singular Name', 'btc_domain' ), 'menu_name' => __( 'PostCards', 'btc_domain' ), 'name_admin_bar' => __( 'PostCards', 'btc_domain' ), 'parent_item_colon' => __( 'Parent Postcard:', 'btc_domain' ), 'all_items' => __( 'All Postcards', 'btc_domain' ), 'add_new_item' => __( 'Add New Postcard', 'btc_domain' ), 'add_new' => __( 'Add New', 'btc_domain' ), 'new_item' => __( 'New Postcard', 'btc_domain' ), 'edit_item' => __( 'Edit Postcard', 'btc_domain' ), 'update_item' => __( 'Update Postcard', 'btc_domain' ), 'view_item' => __( 'View Postcard', 'btc_domain' ), 'search_items' => __( 'Search Postacrds', 'btc_domain' ), 'not_found' => __( 'Not found', 'btc_domain' ), 'not_found_in_trash' => __( 'Not found in Trash', 'btc_domain' ), ); $args = array( 'label' => __( 'postcard', 'btc_domain' ), 'description' => __( 'post card item', 'btc_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'post-formats', ), 'taxonomies' => array( 'sender', ' reciever' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-images-alt2', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'postcard', $args ); } // Hook into the 'init' action add_action( 'init', 'postcards', 0 );