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

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 2 17:57:49 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 azaozz):

 Replying to [comment:93 chipbennett]:
 > I'm not sold on the add_theme_support() implementation...

 Yes, but during the transition we need to let plugins know when a theme
 supports the new template tags. The `add_theme_support` seems the best way
 to do it. The transition would probably be at least few months, maybe
 longer.

 > If I were to start up a conversation among the Theme Developers, should
 I direct them to this ticket, or just start a discussion thread on the
 make.wordpress.org/themes site?

 I'm thinking it's better to start by posting on make.wordpress.org/themes.
 This ticket is getting far too long as is :). Also (I hope) we have
 decided to do that, the discussion should probably be about what template
 tags, where exactly, naming, cut-off date, etc.

 Going through the tons of comments here, seems we can do something like
 this as proposed by @mattwiebe:
 {{{
 wp_before_the_loop();
 while ( have_posts() ) : the_post();
   ?>
   // opening div?
   <?php wp_before_post_content(); ?>

   // theme specific code...

   <?php wp_after_post_content(); ?>
   // closing div?
   <?php
 endwhile;
 wp_after_the_loop();
 }}}

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


More information about the wp-trac mailing list