Pagination not working
-
<?php query_posts(‘posts_per_page=20’); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( get_post_meta($post->ID, ‘image’, true) ) { ?>
“><img alt=”<?php the_title_attribute(); ?>” src=”<?php echo bloginfo(‘template_url’); ?>/thumb.php?src=<?php echo get_post_meta($post->ID, “image”, $single = true); ?>&h=105&w=105&zc=0&q=100″ />
<?php } ?>
<?php endwhile; endif; ?>I changed the first line from
<?php query_posts('showposts=20'); ?>
to
<?php query_posts('posts_per_page=20'); ?>
My problem is that when I click on any number on the pagination, the content doesn’t change.
The url in the browser does change according to the number you clicked, but the actual content doesn’t change.I have viewed this post
https://www.ads-software.com/support/topic/261673?replies=5
which is quite similar to my problem but it doesn’t apply to me.
Can anybody help?
Thanks.
- The topic ‘Pagination not working’ is closed to new replies.