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

WordPress Trac noreply at wordpress.org
Mon Aug 26 04:51:12 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 amaschas):

 c3mdigital - Post meta data and related objects. The post types I'm
 working with often have many custom fields, options that enable or disable
 features or markup and related or child post objects that need to be
 populated. Past a certain level of complexity, you really need some sort
 of controller object to build the set of meta data for a post type, and
 there's currently no good way to get that data into the template without
 using globals. As you can imagine, using globals for this purpose in a
 sufficiently large problem quickly becomes problematic.

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


More information about the wp-trac mailing list