Wordpress Multi Loop Conditional Conflict

Wordpress Multi Loop Conditional Conflict

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?


how to search in wordpress from the database mysql
Run a new query; you must run as many as you want within the standard WP loop. sexy bookmark plugin breaks my site in ie6I don't what you're doing in your current loops, although this is an case of a new query this must coexist with the main WP loop as well as another instances of the query:. difficulty with japanese character encoding in 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; ?> 
Also see Function Reference/WP Query « WordPress Codex and Function Reference/wp reset query « WordPress Codex. Editors for different parts of Wordpress
how can i use ugly slugs in wordpress using non-western character?

55 out of 100 based on 70 user ratings 265 reviews