Pagination not working
-
<?php $top_query = new WP_Query('showposts=1'); ?> <?php while($top_query->have_posts()) : $top_query->the_post(); $first_post = $post->ID; ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="main-post-bg"> <p class="post-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p> <?php $image = get_post_meta($post->ID, 'lead_image', true); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img width="593" src="<?php echo $image; ?>" alt="" /></a> <div class="title-insert"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> </div> </div> </div> <?php endwhile; ?> <div class="recent-leads fix"> <?php query_posts('showposts=9'); ?> <?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="secondary-post-bg left"> <p class="post-comments"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p> <?php $image = get_post_meta($post->ID, 'secondary_image', true); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="" /></a> <div class="title-insert"> <h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a></h3> </div> </div> </div>
I changed the 15th line from
<?php query_posts(‘showposts=9’); ?>
to
<?php query_posts(”); ?>Now it shows up on my site (https://www.phatbrush.com) and its styled and all is great.
~My Problem~`
When you 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.~My Attempts~
I also tried to refresh/resave the permalinks and I also re-installed/uninstalled your plugin twice to double check if the database got screwd up somehow.
Would you have any idea as to what is needed to make this wp-navi plugin work , I’ve tried searching the internet and multiple forums for a solution? The theme i’m using is unstandard theme by https://5thirtyone.com/
- The topic ‘Pagination not working’ is closed to new replies.