How to get template drop down menu in page-attributes of custom post type?

When I register my custom post type, I set this:

'hierarchical'   => true,
'supports'       => array( 'title','author', 'page-attributes' ),

So, I am supose to see ‘order’, ‘templates’, ‘parents’ in Attributes box when create new post. But, I don’t see the ‘templates’ drop down showing up.
Anything else I should do to enable the choice of ‘templates’ ?

4 s
4

You can’t apply templates to custom post types in this manner. That will show up only if the post type is ‘page’ ( Check the wp-admin/includes/meta-boxes.php line 568 ). However if you want to style all your single custom post types in the same manner but different from other post types you could use the single-[posttype].php -> http://codex.wordpress.org/images/1/18/Template_Hierarchy.png

Leave a Comment