custom post types not displaying
-
I have a problem with my custom post types not showing up. If I try to “preview changes” or access the custom post type any way, it can not find the file. Everything on the backend of the post type, and it’s taxonomies associated with it, work just fine.
Here is my code in my functions.php file
add_action('init', 'disc_init'); function disc_init() { $discography_labels = array( 'name' => _x('Discography', 'post type general name'), 'singular_name' => _x('Discography', 'post type singular name'), 'all_items' => __('All records'), 'add_new' => _x('Add new record', 'items'), 'add_new_item' => __('Add new record'), 'edit_item' => __('Edit record'), 'new_item' => __('New record'), 'view_item' => __('View record'), 'search_items' => __('Search in discography'), 'not_found' => __('No record found'), 'not_found_in_trash' => __('No record found in trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $discography_labels, 'public' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'rewrite' => true, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => 5, 'supports' => array('title','editor', 'thumbnail'), 'has_archive' => 'discography' ); register_post_type('discography', $args); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘custom post types not displaying’ is closed to new replies.