[wp-trac] [WordPress Trac] #16264: Add function get_pages_by_template()

WordPress Trac noreply at wordpress.org
Sat Feb 14 03:13:51 UTC 2015


#16264: Add function get_pages_by_template()
-------------------------------+------------------------------
 Reporter:  mikeschinkel       |       Owner:
     Type:  feature request    |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  3.1
 Severity:  normal             |  Resolution:
 Keywords:  needs-refresh      |     Focuses:
-------------------------------+------------------------------

Comment (by MikeSchinkel):

 Replying to [comment:11 helen]:
 > I'm fine with leaving this ticket open and assessing demand, whether
 proactively or not,

 Thanks.

 > (noting that a tax query typically performs better than a meta query,
 for what that's worth),

 You are aware that page templates are stored by WordPress core as post
 meta fields with a key of `'_wp_page_template'`?

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


More information about the wp-trac mailing list