Taxonomia Clientes
Snippet para crear taxonomia clientes
if ( ! function_exists( 'ac_tax_clientes' ) ) { // Register Custom Taxonomy function ac_tax_clientes() { $labels = array( 'name' => _x( 'Clientes', 'Taxonomy General Name', 'ac_tax_clientes' ), 'singular_name' => _x( 'Cliente', 'Taxonomy Singular Name', 'ac_tax_clientes' ), 'menu_name' => __( 'Clientes', 'ac_tax_clientes' ), 'all_items' => __( 'Todos los Clientes', 'ac_tax_clientes' ), 'parent_item' => __( 'Cliente', 'ac_tax_clientes' ), 'parent_item_colon' => __( 'Parent Item:', 'ac_tax_clientes' ), 'new_item_name' => __( 'Nuevo Nombre de Cliente', 'ac_tax_clientes' ), 'add_new_item' => __( 'Añadir Nuevo Cliente', 'ac_tax_clientes' ), 'edit_item' => __( 'Editar Cliente', 'ac_tax_clientes' ), 'update_item' => __( 'Update Item', 'ac_tax_clientes' ), 'view_item' => __( 'Ver Cliente', 'ac_tax_clientes' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'ac_tax_clientes' ), 'add_or_remove_items' => __( 'Add or remove items', 'ac_tax_clientes' ), 'choose_from_most_used' => __( 'Choose from the most used', 'ac_tax_clientes' ), 'popular_items' => __( 'Clientes Populares', 'ac_tax_clientes' ), 'search_items' => __( 'Buscar Cliente', 'ac_tax_clientes' ), 'not_found' => __( 'Not Found', 'ac_tax_clientes' ), 'no_terms' => __( 'No items', 'ac_tax_clientes' ), 'items_list' => __( 'Items list', 'ac_tax_clientes' ), 'items_list_navigation' => __( 'Items list navigation', 'ac_tax_clientes' ), ); $rewrite = array( 'slug' => 'cliente', 'with_front' => true, 'hierarchical' => true, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'rewrite' => $rewrite, ); register_taxonomy( 'Clientes', array( 'ac_negocios' ), $args ); } add_action( 'init', 'ac_tax_clientes', 0 ); }