[wp-trac] [WordPress Trac] #18375: Post type templates
WordPress Trac
noreply at wordpress.org
Sun Oct 23 09:46:32 UTC 2016
#18375: Post type templates
--------------------------------------+-------------------------
Reporter: johnbillion | Owner: swissspidy
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: Posts, Post Types | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: template
--------------------------------------+-------------------------
Comment (by swissspidy):
@sc0ttkclark @dipesh.kakadiya Unfortunately this approach '''does not
work'''. In many languages, translations are different depending on the
post type. One can't pass variables as the context for translation
functions. Thus, extending post type labels is the only viable approach.
I attached a new patch in [attachment:18375.5.diff]. There were only some
minor changes compared to the previous one. Now, a post type does not need
to support `page-attributes` in order to be able to select a template. For
example, if there's at least 1 template for the 'post' post type, the meta
box will be displayed — without the page attributes stuff like order and
hierarchy of course.
@johnbillion @DrewAPicture @ocean90 Does anyone want to give this a go? It
would be great to get this in before beta 1.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18375#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list