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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 2 16:24:23 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):

 Chip: the_post() doesn't create the output. It just sets up the post
 variables. Having a before and after in there wouldn't work for this.

 Consider the standard loop:

 while (have_posts()) : the_post();

 That "the_post" call is where you're putting your before and after. Not
 the right place.

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


More information about the wp-trac mailing list