Alright I have two loops going, on in the body and on in the sidebar. I also have a conditional statement in the footer that generates another loop. The problem I'm running into is the use of the conditional statement in the footer. Because the loop in the sidebar was called last, Wordpress is using its variables in the conditional statement in the footer, and causing it to return false.
maybe there's some way to make some of the variables in loop in the body $_GLOBAL, that way I can use it later on and not have it conflict with the loop in the sidebar?
Word press geo location posts?
1:how to search in wordpress from the database mysql
Also see Function Reference/WP Query « WordPress Codex and Function Reference/wp reset query « WordPress Codex. Editors for different parts of Wordpress
<?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; ?>