Query not working properly?
-
Even though it’s bringing up a post, it’s not bring up more than one. I have more than one post, but only 1 shows up, but not more than that. What’s happening?
<?php query_posts( array ( 'post_type' ='product', 'product_cat' = 'newly-released', 'post_per_page' = 4 ) ); while (have_posts()) : the_post(); <h2><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></h2> <a href="<?php the_permalink() ?>"><?php echo get_the_post_thumbnail(); ?></a><?php the_excerpt(); ?> <hr/> endwhile; wp_reset_query(); ?>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Query not working properly?’ is closed to new replies.