custom post type
-
hi guy, i have create the custom post type, all work, but not show permalinks title,
img
this is the code:if ( ! function_exists('eventifb') ) { // Register Custom Post Type function eventifb() { $labels = array( 'name' => 'Eventi', 'singular_name' => 'Evento', 'menu_name' => 'Eventi', 'name_admin_bar' => 'Eventi fb', 'archives' => 'Archivio Eventi', 'attributes' => 'Attributo Eventi', 'parent_item_colon' => 'Parent Event:', 'all_items' => 'Tutti gli eventi', 'add_new_item' => 'add nuovo evento', 'add_new' => 'Aggiungi Evento', 'new_item' => 'Nuovo Evento', 'edit_item' => 'Modifica Evento', 'update_item' => 'Aggiorna Evento', 'view_item' => 'Vedi Evento', 'view_items' => 'Vedi Eventi', 'search_items' => 'Cerca Evento', 'not_found' => 'Not Found', 'not_found_in_trash' => 'Non trovo nel cestino', 'featured_image' => 'Featured Image', 'set_featured_image' => 'Set featured image', 'remove_featured_image' => 'Remove featured image', 'use_featured_image' => 'Use as featured image', 'insert_into_item' => 'Inserisci nell evento', 'uploaded_to_this_item' => 'Carica da questo evento', 'items_list' => 'Items list', 'items_list_navigation' => 'Items list navigation', 'filter_items_list' => 'Filter items list', ); $args = array( 'label' => 'Evento', 'description' => 'Eventi Presi da Facebook', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-media-document', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'eventslug', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'eventi', $args ); } add_action( 'init', 'eventifb', 0 ); }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘custom post type’ is closed to new replies.