Okay I've two loops going, on in your body as well as on within the sidebar. I in addition have a conditional statement within the footer that creates another loop. The issue I am encountering is using the conditional statement within the footer. Since the loop within the sidebar was known as last, Wordpress is applying its variables within the conditional statement within the footer, and leading to it to come back false.

maybe there's a way to create a few of the variables in loop in your body $_GLOBAL, this way I'm able to utilize it afterwards and never get it conflict using the loop within the sidebar?

thanks

Operate a new query you are able to run as much as you would like inside the standard Wordpress loop. I do not what you are doing inside your current loops, but this really is one particular new query that may exist together using the primary Wordpress loop along with other cases of the query:

<?php $my_query = new WP_Query('category_name=mycategory&showposts=1'); ?>
<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<?php the_title(); ?></a>
<?php endwhile; ?>

Also see Function Reference/WP Query « WordPress Codex and Function Reference/wp reset query « WordPress Codex