Title: custom post types not displaying
Last modified: August 21, 2016

---

# custom post types not displaying

 *  [aaron9999](https://wordpress.org/support/users/aaron9999/)
 * (@aaron9999)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/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)

 *  Thread Starter [aaron9999](https://wordpress.org/support/users/aaron9999/)
 * (@aaron9999)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-types-not-displaying/#post-3827449)
 * I went and changed my permalinks to just the permalink name, and now they are
   showing up. So I guess I solved the problem. However, if I wanted to have my 
   own permalink structure, how would this be solved?

Viewing 1 replies (of 1 total)

The topic ‘custom post types not displaying’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [aaron9999](https://wordpress.org/support/users/aaron9999/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-types-not-displaying/#post-3827449)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
