Why is my custom post content only viewable when signed into Wordpress?

I've created a custom Post type called 'Data' to display content on a Wordpress site. The content works and is displayed if viewed when signed into Wordpress. Howevever, if you view the same URL when not signed into Wordpress (Incognito), the page appears blank. Is there a soultion to this?

Snippet from functions.php:

// Our custom post type function

function create_posttype() {

register_post_type( 'Data',
// CPT Options
    array(
        'labels' = array(
            'name' = __( 'Data' ),
            'singluar_name' = 'Data',
        ),
        'public' = true,
        'has_archive' = true,
        'rewrite' = array('with_front' = false, 'slug' = 'data'),
        'support' = array('title', 'editor'),
        'publicly_queryable' = true

    )
);

} // Hooking up our function to theme setup add_action( 'init', 'create_posttype' );

Topic post-type php posts customization custom-post-types Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.