Custom Post Type Archive Title Lowercase
-
04-11-2019 - |
Question
Is there any reason that my custom post type archive title is all lower-case even though 'name' is defined as sentence-case?
Here is the post type function I'm using:
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', 'resources_post_type', 0 );
I'm using Thesis 2.0
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange