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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 1 19:32:20 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):

 Another approach would be to hook into 'loop_end', check is_single(), and
 call some action then. That guarantees code execution at the bottom of
 every content area, since 'loop_end' fires after the loop has already ran
 it's full course on a single page/post.

 The problem I see with this is having WordPress core hook directly into
 the query layer for something only the theme layer will use. If we're
 willing to make that compromise, it's the most reliable way to guarantee
 code execution at the very bottom of a post loop.

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


More information about the wp-trac mailing list