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

WordPress Trac noreply at wordpress.org
Tue Dec 15 23:10:14 UTC 2015


#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):

 Basing it on the [https://developer.wordpress.org/themes/basics/template-
 hierarchy/#single-post post hierarchy] as closely as possible, the embed
 hierarchy would be:

 1. embed-{post-type}-{slug}.php
 1. embed-{post-type}.php
 1. embed.php
 1. built in template

 Post type allows for posts, pages, CPT so I'm more inclined for that as
 post-format is post only.

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


More information about the wp-trac mailing list