[wp-hackers] hierarchical CPT w/ Templates?

Barrett Golding bg at hearingvoices.com
Wed Mar 23 00:48:19 UTC 2011


can a Custom Post Type w/ hierarchical => true
uses custom page-like Templates?
(ie, not talking about single-{cpt-slug}.php,
but any Custom Template w/ "Template Name: Foo" at top.)

this ticket, and trying the code itself, say no:
"Template" shouldn't show for custom hierarchical post types
http://core.trac.wordpress.org/ticket/12759

there's an Attibutes box, but only w/ Parent & Menu Order;
NO Template select menu to be found.

yet the Codex is convinced it can be done:
http://codex.wordpress.org/Function_Reference/ 
register_post_type#Arguments

under "supports", it reads: "'page-attributes' (template and menu order,
hierarchical must be true to show Parent option)"

is this a 3.2 thang, as the (closed) ticket implies?

bg
-- 
<http://HearingVoices.com/>
~radio active transmissions~





More information about the wp-hackers mailing list