WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Conditional tags can’t to be used after a loop?

[Resolved] Conditional tags can’t to be used after a loop?

  • Hello,

    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?

    bye

Viewing 2 replies - 1 through 2 (of 2 total)
  • there is my 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; ?>

    Try wp_reset_query(); after your loop or in your footer before the conditional tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Conditional tags can’t to be used after a loop?’ is closed to new replies.