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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 1 21:33:34 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 GaryJ):

 Replying to [comment:46 Otto42]:
 > Theme authors *hate* it when you take away any amount of their ability
 to output HTML. Theme authors *hate* it when you tell them to use actions
 and filters to modify HTML. They don't get it, and they never will.

 All the developers creating child themes of Thesis, Genesis and likely
 other theme frameworks would disagree with that - make one alteration, and
 hooking it in once makes far more sense (and far less work) than altering
 duplicate code in several files as was traditionally done; it solves the
 same problem that template parts does (as I understand them), and it's
 just a different way of working. One has a (typically parent) theme with
 lots of hooks scattered around, the other expects files to have certain
 names.

 If theme authors aren't switching over to using template parts, then the
 benefits of them need to be explained clearer, and get the theme framework
 guys on board. Maybe having an agreed list of parts that are intended to
 cover all the areas that hooks within the frameworks do would be a start.
 Even so, getting existing frameworks to switch would be a big ask.

 What we need is something that all theme authors know should be in their
 themes if they want them to play nicely with plugins - a la `wp_head()`,
 `wp_footer()` etc. and that includes making use of the common ways of
 grabbing the content: `the_title()`, `the_content()`, `the_excerpt()` and
 so on - it's for this reason that a simple `the_post_extras()` or
 `the_rest()` will solve the issue for now, until the above problems of
 turning the tide and getting everyone on board with using template parts
 is solved.

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


More information about the wp-trac mailing list