[wp-trac] [WordPress Trac] #34278: Add support for embeds in the theme template hierarchy
WordPress Trac
noreply at wordpress.org
Sun Feb 21 21:32:34 UTC 2016
#34278: Add support for embeds in the theme template hierarchy
-----------------------------------------------+------------------------
Reporter: johnbillion | Owner:
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 4.5
Component: Embeds | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch 4.5-early needs-testing | Focuses: template
-----------------------------------------------+------------------------
Comment (by peterwilsoncc):
Replying to [comment:35 Otto42]:
> I never said that what we already have was consistent. :)
>
> But just because some existing part is wrong doesn't mean we should
continue along those lines. Post types should be the domain of plugins,
really. Making themes have additional knowledge of them is bad in general.
I think the current WordPress structure is consistent, templates for CPT's
are `{archive|single}-{post-type}.php`. My proposal in comment
[comment:26] is to maintain this consistency with `{archive|single|embed
}-{post-type}.php`.
Pages are an exception, let's not further complicate the theming
experience by adding another. It's logical that if a theme does not style
a CPT it falls back to the default.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34278#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list