Title: Custom Post Type Template not working
Last modified: August 24, 2016

---

# Custom Post Type Template not working

 *  [maltech](https://wordpress.org/support/users/maltech/)
 * (@maltech)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-template-not-working/)
 * I used the following to register the post type
 *     ```
       function create_estate_sales_post_type() {
       $eslabels = array(
       'name' => 'Estate Sales',
       'singular_name' => 'Estate Sale',
       'add_new' => 'Add New Sale',
       'add_new_item' => 'Add New Sale',
       'edit_item' => 'Edit Sale',
       'new_item' => 'New Sale',
       'all_items' => 'All Sales',
       'view_item' => 'View Sale',
       'search_items' => 'Search Sales',
       'not_found' => 'No Sales Found',
       'not_found_in_trash' => 'No Sales found in Trash',
       'parent_item_colon' => '',
       'menu_name' => 'Estate Sales',
       );
       register_post_type( 'estate-sales', array(
       'labels' => $eslabels,
       'has_archive' => true,
       'public' => true,
       'supports' => array( 'title', 'excerpt', 'thumbnail' ),
       'taxonomies' => array( '' ),
       'exclude_from_search' => false,
       'capability_type' => 'post',
       'rewrite' => array( 'slug' => 'estate-sales' ),
       )
       );
       }
       ```
   
 * single-estate-sales.php does not work, archive-estate-sales.php does not work.

The topic ‘Custom Post Type Template not working’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [maltech](https://wordpress.org/support/users/maltech/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/custom-post-type-template-not-working/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
