[wp-trac] [WordPress Trac] #9940: Conditional tags can't to be used after a loop

WordPress Trac wp-trac at lists.automattic.com
Mon May 25 16:57:06 GMT 2009


#9940: Conditional tags can't to be used after a loop
--------------------------+-------------------------------------------------
 Reporter:  csseur3       |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  2.8       
Component:  Template      |     Version:  2.7.1     
 Severity:  normal        |    Keywords:  loop, tags
--------------------------+-------------------------------------------------
 Hello,

 there is a classic loop:


 {{{
 <?php if (have_posts()) : ?>
       <?php query_posts('orderby=category&order=asc&cat=133'); ?>
       <?php while (have_posts()) : the_post(); ?>

       codes etc...

       <?php endwhile; ?>
       <?php endif; ?>
 }}}

 with the pages where i have a loop, all my conditional tags in the
 footer.php doesn't work, but the conditional tags in header.php works...

 So, it is impossible to use conditional tags after a loop?

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


More information about the wp-trac mailing list