Hi i have this wordpress site and the pages will display images on it. Now my problem is when i add post_per_page => '50'
then when i refresh the page the number of posts per page is not rendering correctly. Here is my code below.
<?php
query_posts( array(
'post_per_page' => 50,
'cat'=> '7',
'order' => 'ASC'
) );
?>
<?php while(have_posts()) : the_post(); ?>
<div class="single-gallery anim-5-all interoors masonryImage mix span-4">
<div class="img-holder">
<?php
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
$url = $thumb['0'];
?>
<img src="<?=$url; ?>" alt="">
</div>
</div><!-- /.single-gallery -->
<?php endwhile; wp_reset_query(); ?>
Now it will display 9 images on the page. Can someone help me figured this thing out? Any help is muchly appreciated. TIA