I have a CPT called businesses and have created posts within that however, when I click on any of the posts, they show a blank page. Anyone know why?
<?php
//create a custom post type for new businesses
function create_businesses() {
$labels = array(
'name' => 'Our Businiesses',
'singular_name' => 'Our Businesses',
'add_new_item' => 'Add A New Business', 'chandco',
'new_item' => 'New Business', 'chandco',
'edit_item' => 'Edit Business', 'chandco',
'view_item' => 'View Business', 'chandco',
'all_items' => 'All Businesses', 'chandco',
'add_new' => 'Add A New Business', 'chandco'
);
$args = array(
'labels' => $labels,
'public' => true,
'has_archive' => true,
'capability_type' => 'post',
'supports' => array('title', 'editor', 'thumbnail'),
'rewrite' => array( 'slug' => 'businesses' ),
);
register_post_type( 'businesses', $args);
}
add_action( 'init', 'create_businesses' );
?>