WordPress loop is displaying thumbnails from all project pages!
-
I can’t figure out why this is happening! My wordpress loop is displaying all thumbnail images from all three of my project pages. It should just display the thumbnails for each individual project. For each new project page I create I assign it the same template page which has this loop in it below. Any help would be appreciated : ) Here is my code…
<section class="art-thumbnails"> <?php query_posts("posts_per_page=-1&post_type=page&order=asc"); if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <figure><a href="<?php the_permalink(); ?>"><img src="<?php echo get_post_meta($post->ID, "detail_thumbnail", true); ?>" alt="" /></a></figure> <?php endwhile; wp_reset_query(); ?> </section>
- The topic ‘WordPress loop is displaying thumbnails from all project pages!’ is closed to new replies.