Jump to content



Photo

[wordpress] pagination problem


  • Please log in to reply
1 reply to this topic

#1 MaPa

MaPa

    Neowinian

  • Joined: 17-July 10

Posted 17 August 2014 - 03:18

Hello :) 

 

I have very strange problem with pagination in Wordpress. First thing web page. Second, I want to display all post from couple categories. In Wordpress options I set 5 post per page. And now check, how it works. The same posts on every page. <div id="primary" class="site-content">

<div id="primary" class="site-content">
		<div id="content" role="main">

        <?php $posts = query_posts('cat=114,116,117,118,120,121,123,124,125,126'); ?>
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content-mapa', 'page' ); ?>
			<?php endwhile; 
			
			if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
			
			?>
            
            
            
            

            
		</div><!-- #content -->
        	
	</div><!-- #primary -->

I do not know what is wrong, because pagination on home page works perfectly. Can anyone help me ? Regards. MaPa.




#2 +Arron

Arron

    Marvellous

  • Tech Issues Solved: 1
  • Joined: 14-June 10
  • Location: England
  • OS: Windows 8.1 Pro
  • Phone: Samsung Galaxy S4

Posted 30 August 2014 - 11:54

You might have a conflicting plugin. Or the theme does not work properly with pagination