CPT Retail
Bill Ringa
if ( ! function_exists('retail') ) { // Register Custom Post Type function retail() { $labels = array( 'name' => _x( 'Retail Paginas', 'Post Type General Name', 'nl_NL' ), 'singular_name' => _x( 'Retail Pagina', 'Post Type Singular Name', 'nl_NL' ), 'menu_name' => __( 'Retail', 'nl_NL' ), 'name_admin_bar' => __( 'Retail', 'nl_NL' ), 'parent_item_colon' => __( 'Parent Retail Pagina:', 'nl_NL' ), 'all_items' => __( 'Alle Retail Pagina's', 'nl_NL' ), 'add_new_item' => __( 'Nieuwe Retail Pagina', 'nl_NL' ), 'add_new' => __( 'Nieuwe Retail Pagina', 'nl_NL' ), 'new_item' => __( 'Nieuwe Retail Pagina', 'nl_NL' ), 'edit_item' => __( 'Edit Retail Pagina', 'nl_NL' ), 'update_item' => __( 'Update Retail Pagina', 'nl_NL' ), 'view_item' => __( 'Bekijke Retail Pagina', 'nl_NL' ), 'search_items' => __( 'Search Retail Pagina', 'nl_NL' ), 'not_found' => __( 'Not found', 'nl_NL' ), 'not_found_in_trash' => __( 'Not found in Trash', 'nl_NL' ), ); $args = array( 'label' => __( 'retail', 'nl_NL' ), 'description' => __( 'Retailers Pagina's', 'nl_NL' ), 'labels' => $labels, 'supports' => array( ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-media-interactive', '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' => 'page', ); register_post_type( 'retail', $args ); } // Hook into the 'init' action add_action( 'init', 'retail', 0 ); }