I have a custom post type :
add_action('init', 'dossierinfo_register');
function dossierinfo_register() {
register_post_type( 'dossier' , array(
'label' => __('Dossiers'),
'singular_label' => __('Dossier'),
'public' => true,
'show_ui' => true,
'capability_type' => 'page',
'hierarchical' => true,
'has_archive' => false,
'menu_position' => 3,
'supports' => array('title', 'editor', 'thumbnail', 'page-attributes')
));
flush_rewrite_rules();
}
and a page template named page-dossier.php with
<?php
/*
Template Name: Dossiers
*/?>
But i can't use it ! It's not working. The template working like a charm in normal pages but not in custom post type.
Obviously i flushed my rewrite rules ans permalink in admin area…
I don't know what to do ! Any ideas ?
'scuse my english i'm french
Thank !
EDIT: Is it possible that i'm working on a subdomain ?