• 0

[wordpress] pagination problem


Question

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.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.