Title: Pagination Doesn&#039;t Work
Last modified: August 22, 2016

---

# Pagination Doesn't Work

 *  [soufix](https://wordpress.org/support/users/soufix/)
 * (@soufix)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/)
 * When I click on page 2 at the bottom, it doesn’t go to page 2 and instead remains
   on page 1. However, the URL reflects that I’m on page 2.
    but still the same 
   posts in page 1 are shown .
 * Plz Help Me
 * [https://wordpress.org/themes/page/](https://wordpress.org/themes/page/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/#post-5419921)
 * Please don’t [bump, that’s not allowed here](http://codex.wordpress.org/Forum_Welcome#No_Bumping).
 * What is the URL of the site you are having this pagination problem with?
 *  Thread Starter [soufix](https://wordpress.org/support/users/soufix/)
 * (@soufix)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/#post-5420020)
 * [http://www.skidrowreloaded.com](http://www.skidrowreloaded.com)
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/#post-5420064)
 * [Bump](http://codex.wordpress.org/Forum_Welcome#No_Bumping)s are still not allowed;
   also, I moderated several duplicate topics which are also not tolerated here 
   in the forum.
    if the solving of your problem is so urgent, consider to hire 
   somebody; [http://jobs.wordpress.net/](http://jobs.wordpress.net/)
 * does this also happen if you temporarily switch to the default theme Twenty Fourteen?
 * have you edited any of the templates?
 * have you reviewed [http://codex.wordpress.org/Pagination](http://codex.wordpress.org/Pagination)?
 * have you contacted the theme’s developer?
    you seem to be using the theme ‘Dilapidated’
   which is not one of the supported themes from [https://wordpress.org/themes/](https://wordpress.org/themes/)
 *  Thread Starter [soufix](https://wordpress.org/support/users/soufix/)
 * (@soufix)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/#post-5420073)
 * this is my index.php if u can find the prb , plz 4 days same prb plz
 * _[ Moderator note: code fixed. Please wrap code in the backtick character or 
   [use the code button](http://codex.wordpress.org/Forum_Welcome#Posting_Code).]_
 *     ```
       <?php
       get_header();
       global $options;
       foreach ($options as $value) {
       if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
       }
       ?>
   
       <?php query_posts('paged='.$paged.'&cat='.$theme_home_cats); if (have_posts()) : while (have_posts()) : the_post(); ?>
   
       	<div class="post">
   
       		<h2><a>"><?php the_title(); ?></a></h2>
   
       		<div class="meta">
       			Posted <?php if (function_exists('time_since')) {
       			echo time_since(abs(strtotime($post->post_date_gmt . " GMT")), time()) . " ago";
       			} else {
       			the_time('d M Y');
       			} ?> in <?php the_category(', '); ?> <?php edit_post_link('(Edit Post)'); ?>
       		</div>
   
       		<div class="clear"></div>
   
       		<?php if((get_post_meta($post->ID, 'ghostpool_thumbnail', true) OR has_post_thumbnail()) && ($theme_thumbnails == "0")) { ?>
   
       			<div class="image-preview">
       				<a>"><?php if(get_post_meta($post->ID, 'ghostpool_thumbnail', true)) { ?><img src="<?php echo(get_post_meta($post->ID, 'ghostpool_thumbnail', true)); ?>" class="wp-post-image" alt="" /><?php } else { ?><?php the_post_thumbnail(('thumbnail'), array('title' => '')); ?><?php } ?></a>
       			</div>
   
       		<?php } ?>	
   
       			<div class="post-excerpt">
   
       				<?php if($theme_homepage_text_display == "1") { ?>
       					<?php the_content(); ?>
       				<?php } else {?>
       					<p><?php echo excerpt(120); ?></p>
       				<?php } ?>
   
       			</div><!--End post excerpt-->
   
       		<div class="meta right">
       			<a>" rel="bookmark" title="<?php the_title(); ?>">Read More</a> / <?php comments_popup_link('0 Comments', '1 Comment', '% Comment', 'comments-link', '-'); ?>
       		</div>
   
       	</div><!--End post-->
   
       <?php endwhile; ?>
   
       	<?php wp_pagenavi(); ?>
   
       <?php else : ?>	
   
       	<div class="post">
       		<h3>Page Not Found</h3>
       	</div>
   
       <?php endif; wp_reset_query(); ?>
   
       <?php get_footer(); ?>
       ```
   
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/#post-5420087)
 * make sure the variables `$paged` and `$theme_home_cats` are properly defined;
 * review the Codex information [http://codex.wordpress.org/Pagination#Adding_the_.22paged.22_parameter_to_a_query](http://codex.wordpress.org/Pagination#Adding_the_.22paged.22_parameter_to_a_query),
   and apply it to:
 *     ```
       <?php query_posts('paged='.$paged.'&cat='.$theme_home_cats); if (have_posts()) : while (have_posts()) : the_post(); ?>
       ```
   
 * in any case, using `query_posts()` in this way is not recommended – review [http://wordpress.stackexchange.com/questions/1753/when-should-you-use-wp-query-vs-query-posts-vs-get-posts](http://wordpress.stackexchange.com/questions/1753/when-should-you-use-wp-query-vs-query-posts-vs-get-posts)
 * if the line is the original code from your theme, then you have to contact the
   theme’s developer.
 * this forum here can only really help with themes which are from [https://wordpress.org/themes/](https://wordpress.org/themes/)

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Pagination Doesn't Work’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/page/1.03/screenshot.png)
 * Page
 * [Support Threads](https://wordpress.org/support/theme/page/)
 * [Active Topics](https://wordpress.org/support/theme/page/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/page/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/page/reviews/)

## Tags

 * [pagination](https://wordpress.org/support/topic-tag/pagination/)

 * 5 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-14/#post-5420087)
 * Status: not resolved