WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Conditional tags can't to be used after a loop? (3 posts)

  1. csseur3
    Member
    Posted 5 years ago #

    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

  2. csseur3
    Member
    Posted 5 years ago #

    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; ?>
  3. MichaelH
    Member
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.