Title: Custom post template bug
Last modified: August 21, 2016

---

# Custom post template bug

 *  [lohic](https://wordpress.org/support/users/lohic/)
 * (@lohic)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/custom-post-template-11/)
 * Hello,
 * I’m currently building a template theme with custom post inside. One off theses
   custom post is using those parameters :
 *     ```
       register_post_type(
       	'record',
       	array(
       		'label'  => __('Records'),
       		'singular_label' => __('Record'),
       		'public' => true,
       		'show_ui' => true,
       		'show_in_nav_menus' => false,
       		'capability_type' => 'page',
       		'rewrite' => array("slug" => "records"),
       		'hierarchical' => true,
       		'query_var' => false,
       		'supports' => array('title','editor','thumbnail'),
       		'menu_position' => 20
       	)
       );
       ```
   
 * The problem is that it don’t use the **single-record.php** but **page.php** template
   file.
    If I switch hierarchical to false it uses again the **single-record.php**.
 * Any idea ?

The topic ‘Custom post template bug’ is closed to new replies.

## Tags

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

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

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
