[wp-trac] [WordPress Trac] #34278: Add support for embeds in the theme template hierarchy

WordPress Trac noreply at wordpress.org
Sun Feb 21 12:49:18 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 ramiy):

 Replying to [comment:24 Otto42]:
 > For themes that support post formats though, special templates for embed
 per format make more sense.

 I understand your logic, different embed templates for text, video, audio
 and other formats. It's nice. But the problem with post formats is that
 it's a closed list of formats. Developers can't add new formats. And (my)
 clients usually skip the formats - they prefer to add another taxonomy
 term for videos.

 Also, I work with israeli startups and almost all my projects use custom
 post types (+95%). '''With post types I can create new "formats" like code
 snippets, presentations, maps, polls, etc'''. Post types provides more
 control to developers with `single-{post-type}.php` and `archive-{post-
 type}.php`.

 Each one of those new post-types needs a different embed template. This is
 why I think `embed-{post-type}.php` is better - its consistent with the
 current template hierarchy.

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


More information about the wp-trac mailing list