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

WordPress Trac noreply at wordpress.org
Sun Feb 21 14:58:13 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:31 Otto42]:
 > More to the point, post types don't need a hierarchy for embeds, because
 that's not the purpose of post types. A custom Post Type is not just some
 special kind of "Page" after all.
 >
 > Custom post types should not be considered for inclusion in this
 hierarchy at all. It doesn't make sense to include them:

 I have many examples why you should considered post-types and why it makes
 sense to include them:

 * '''Code snippets post-type''', when embedded, will show the code in a
 beautiful code editor, with it's own JS and CSS. I can do it easily using
 `embed-snippet.php`.

 * '''Maps post-type''', when embedded, will show only the map. I don't
 need the site title, the description, or the other elements the default
 embed template present. With `embed-map.php` I can embed only the map.

 * '''Video post-type''', when embedded, will show a player like youtube.
 The player has it's own embed button. We don't want to use the the default
 embed buttons. `embed-video.php` is the solution.

 * '''Presentations post-type''', when embedded, will show the
 presentations player using `embed-presentation.php`.

 The new embed-templates for specific post-types will make it easier to
 build complex application using WordPress.

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


More information about the wp-trac mailing list