[wp-trac] [WordPress Trac] #21676: Pass a variable to get_template_part()

WordPress Trac noreply at wordpress.org
Sat Aug 24 21:57:29 UTC 2013


#21676: Pass a variable to get_template_part()
-----------------------------+------------------------------
 Reporter:  sc0ttkclark      |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Template         |     Version:  3.4.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------

Comment (by c3mdigital):

 I am opposed to adding arbitrary data arguments to `get_template_part()`.
 I'm curious to know what kind of data you need to pass to to a template?
 If your passing an array of posts or an instance of WP_Query that's not
 the main query I would say your doing it wrong.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21676#comment:32>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list