[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:13:09 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 Otto42):

 Replying to [comment:51 mattwiebe]:
 > Did you read what I wrote there re: {{{the_loop}}}? I'm not taking
 anything away. I'm just moving loop contents into loop.php (by default),
 where they can do whatever the hell they want HTML-wise. Plus hooks
 that'll run before and after each iteration of the loop.

 Okay, I see that now, but the function you posted is doing it wrong.
 You're using the "loop" part name for the contents of the loop, instead of
 for the loop itself. This conflicts with twentyten's use of the "loop"
 part name, and does essentially what twentyeleven's "content" part name
 does.

 Also, just wrapping the while ( have_posts() ) : the_post(); ... endwhile;
 with some hooks around it seems of limited benefit to me. Theme authors
 understand the loop already. Wrapping it isn't really needed.

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


More information about the wp-trac mailing list