[wp-trac] [WordPress Trac] #9256: Use of the_content() in sidebar

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 1 19:07:38 GMT 2009

#9256: Use of the_content() in sidebar
 Reporter:  aldolat       |       Owner:  anonymous           
     Type:  defect (bug)  |      Status:  new                 
 Priority:  normal        |   Milestone:  Unassigned          
Component:  General       |     Version:                      
 Severity:  normal        |    Keywords:  sidebar, the_content
 On a theme, that I am developing, the sidebar has a new WP_Query to get
 only one post from a specific category. All works well (index, single,
 archive, pages) displaying correctly the result of the_content() of the
 main column (the main query) and the result of the_content() of my custom
 query in the sidebar.

 The problem is that only on pages and articles that have pagination (using
 the <!--nextpage--> construct), the function "the_content()" of the
 sidebar displays the same content of the main column on pages 2, 3, 4 (and
 so on) of those pages/articles, while on page 1 the various contents are
 displayed properly.

 Is it a bug?

 [http://wordpress.org/support/topic/248632 As MichaelH reported], using
 "echo $post->post_content;" fixes the issue temporarily.

Ticket URL: <http://core.trac.wordpress.org/ticket/9256>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list