• 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.