[wp-hackers] hierarchical CPT w/ Templates?
Dion Hulse (dd32)
wordpress at dd32.id.au
Wed Mar 23 01:24:31 UTC 2011
CPT's do not support Page Templates.
I've updated the codex to reflect that.
Previous to 3.0 the Template option was displayed, however it did not save
(And therefor, not apply on the front end).
On 23 March 2011 11:48, Barrett Golding <bg at hearingvoices.com> wrote:
> 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~
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list