Testimonios post type
Post type para mostrar testimonios de clientes
if ( ! function_exists('apk_testimonios_post_type') ) { // Register Custom Post Type function apk_testimonios_post_type() { $labels = array( 'name' => _x( 'Testimonios', 'Post Type General Name', 'apk' ), 'singular_name' => _x( 'Testimonio', 'Post Type Singular Name', 'apk' ), 'menu_name' => __( 'Testimonios', 'apk' ), 'name_admin_bar' => __( 'Testimonios', 'apk' ), 'parent_item_colon' => __( 'Superior:', 'apk' ), 'all_items' => __( 'Todos los testimonios', 'apk' ), 'add_new_item' => __( 'Agregar testimonio', 'apk' ), 'add_new' => __( 'Agregar nuevo', 'apk' ), 'new_item' => __( 'Nuevo testimonio', 'apk' ), 'edit_item' => __( 'Editar testimonio', 'apk' ), 'update_item' => __( 'Actualizar testimonio', 'apk' ), 'view_item' => __( 'Ver testimonio', 'apk' ), 'search_items' => __( 'Buscar testimonios', 'apk' ), 'not_found' => __( 'No se ha encontrado :(', 'apk' ), 'not_found_in_trash' => __( 'Nada en la papelera', 'apk' ), ); $args = array( 'label' => __( 'testimonios', 'apk' ), 'description' => __( 'Testimonios de clientes', 'apk' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-editor-quote', 'show_in_admin_bar' => false, 'show_in_nav_menus' => false, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'testimonios', $args ); } // Hook into the 'init' action add_action( 'init', 'apk_testimonios_post_type', 0 ); }