[wp-trac] [WordPress Trac] #18375: Post type templates

WordPress Trac noreply at wordpress.org
Thu Apr 16 17:02:36 UTC 2015


#18375: Post type templates
------------------------------------+------------------------------
 Reporter:  johnbillion             |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Posts, Post Types       |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |     Focuses:  template
------------------------------------+------------------------------

Comment (by stewarty):

 Just to add a new use case here.

 Currently building a project involving landing pages.

 Landing pages are setup as a custom post type but we need multiple
 templates.  (Three different templates)

 We've engineered around the problem now, the odd thing is that it seems
 WordPress goes out of it way to stop you implementing this at every stage.
 Full of post_type == 'page' conditionals that you can't really avoid so
 you end up recreating a lot of core code in a plugin.

 Would be nice to see this officially supported.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18375#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list