Titolo dell'archivio post -tipo personalizzato minuscolo
-
04-11-2019 - |
Domanda
C'è qualche motivo per cui il mio titolo di archivio tipi di post personalizzato è tutto minuscolo anche se il "nome" è definito come un caso frase?
Ecco la funzione del tipo di post che sto usando:
function resources_post_type() {
$labels = array(
'name' => _x( 'Resources, Help & Support', 'post type general name' ),
'singular_name' => _x( 'Resource', 'post type singular name' ),
'add_new' => _x( 'Add New', 'resources' ),
'add_new_item' => __( 'Add New Resource' ),
'edit_item' => __( 'Edit Resource' ),
'new_item' => __( 'New Resource' ),
'all_items' => __( 'All Resources' ),
'view_item' => __( 'View Resource' ),
'search_items' => __( 'Search Resources' ),
'not_found' => __( 'No resources found' ),
'not_found_in_trash' => __( 'No resources found in the Trash' ),
'parent_item_colon' => '',
'menu_name' => 'Resources'
);
$args = array(
'labels' => $labels,
'description' => 'Holds our resources and resource specific data',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'query_var' => true,
'menu_position' => 5,
'has_archive' => true,
'rewrite' => array( 'slug' => 'resources' ),
'supports' => array(
'title',
'editor',
'author',
'thumbnail',
'excerpt'
)
);
register_post_type( 'resources', $args );
add_action('admin_init', 'flush_rewrite_rules');
} add_action ('init', 'risorse_post_type', 0);
Sto usando la tesi 2.0
Nessuna soluzione corretta
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a wordpress.stackexchange