[wp-trac] [WordPress Trac] #18561: Better Way to Insert Things Below Individual Posts

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 1 18:35:08 UTC 2011


#18561: Better Way to Insert Things Below Individual Posts
-------------------------+------------------------------
 Reporter:  jane         |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:  3.2.1
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by johnjamesjacoby):

 I think my "the_rest()" approach is the simplest and easiest to wrap your
 head around for 3.2.

 That said, I'm all for get_template_part() getting more muscle. It's
 because of a lack of filters and actions that bbPress 2.0 has its own
 wrapper for it: http://bbpress.trac.wordpress.org/browser/branches/plugin
 /bbp-includes/bbp-core-compatibility.php#L82

 Otto's patch is a good start but get_template_part() could/should be much
 more powerful. Example: bbPress 2.0 uses template parts to power its
 shortcodes so that a theme *can* dictate the appearance if it elects to,
 but it doesn't have to. Template parts are loaded into on output buffer,
 and presented wherever you put them. Easy.

 WordPress could work similarly with a more powerful get_template_part().
 Imagine WordPress coming not just with a new default theme every year, but
 a default theme-construct of common template parts. Those parts are used
 when the existing theme does not include them, like how comments works
 now, but for the header, footer, sidebar, archive, you-name-it. Generic
 core template parts, always built on the latest and greatest web standard,
 maintained by the community, for the community.

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


More information about the wp-trac mailing list