I've been digging through the documentation for days and I guess I'm just not getting it. I have a page from a template I made that calls a category-specific loop, then later calls a page-specific loop, but in the latter it inserts the post from the former.
The first loop calls a category and uses their titles for the listbox. Then the page loop calls that page "registration" or "page_id=7" for my fake sidebar. The post in there now is the content of one of the category posts. Here is my code for the first loop:
<?php query_posts('category_name=upcoming-trips'); ?> <? while (have_posts()) : the_post(); ?> <option value="<?php the_title(); ?>"><?php the_title(); ?></option> <?php endwhile; ?>
And here is the second query... its not a loop cause a page has only one theoretical "post", right?
<?php query_posts( 'page_id=7' ); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content(); ?> </div> </div>
I assume there is something stuck in a global that is not being replaced by the second query, but how to get out of this one I can't figure out.