Hi all, I've been banging my head against this code for days and I figured I'd ask for help. I have a good understanding of HTML and CSS, and I've configured a few WordPress sites, but I'm not super familiar with hacking them to bits.
Basically I am trying to code up a wordpress-driven website that has 4 different categories. When you click on the category in the nav you get to a page which has thumbnail images (placed in the excerpt field of posts) for each post in a category. Once you click on an image, it takes you to a page which still shows the same list of thumbnail images beneath it (you can see a Flash-based example at http://lindseywatkins.com).
Now, I've figured out how to display this functionality on category archive pages, but when I click through to a single post page the list of thumbnails reduces to the most recent post. Here's the code for my navigation (see it live at http://lindseywatkins.com/wp/)
<?php while ( have_posts() ) : the_post('$category'); ?> <?php /* How to display all other posts. */ ?> <a href="<?php the_permalink() ?>"> <?php the_excerpt_rss(); ?> </a> <?php endwhile; // End the loop. Whew. ?>
I also have a separate query being generated before this code in the main loop:
<?php $my_query = new WP_Query('posts_per_page=1'); while ($my_query->have_posts()) : $my_query->the_post(); ?>
Not sure what's going on. Any ideas?