Title: Loop problem
Last modified: August 21, 2016

---

# Loop problem

 *  [Darnok017](https://wordpress.org/support/users/darnok017/)
 * (@darnok017)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/loop-problem-5/)
 * Hi,
 * Maybe i’m writting in wrong topic (sorry for that), but i did’t know where 🙂
   
   I have a problem with posts. I used
 *     ```
       <?php query_posts('category_name=Bez kategorii'); ?>
   
       <div id="primary">
         <div iv="content" role="main">
   
       <?php if ( have_posts() ) : ?>
   
       				<?php forever_content_nav( 'nav-above' ); ?>
   
       				<?php
   
       				while ( have_posts() ) : the_post(); ?>
   
       					<?php get_template_part( 'content', get_post_format() ); ?>
   
       				<?php endwhile; ?>
   
       				<?php forever_content_nav( 'nav-below' ); ?>
   
       <?php endif; ?>
   
       			</div><!-- #content -->
       		</div><!-- #primary -->
       ```
   
 * And in every page i see the same 5 posts. Where is the problem?
 * Thanks for help!

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

 *  [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/loop-problem-5/#post-5081104)
 * For starters, there shouldn’t be a space between ‘Bez” and ‘kategorii’.
 *  Thread Starter [Darnok017](https://wordpress.org/support/users/darnok017/)
 * (@darnok017)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/loop-problem-5/#post-5081112)
 * I know, i tried without space and it’s the same problem…
    I think that the loop
   takes the same loop for every page. Pagination works, so it knows that i have
   more than 6 posts but it shows the same posts on each page.
 *  [respectyoda](https://wordpress.org/support/users/respectyoda/)
 * (@respectyoda)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/loop-problem-5/#post-5081117)
 * What is your goal? I don’t see a description from you of what you are truly trying
   to achieve.
 *  Thread Starter [Darnok017](https://wordpress.org/support/users/darnok017/)
 * (@darnok017)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/loop-problem-5/#post-5081139)
 * I have a template Forever.
    It has a main page which has posts. The problem is
   that it has six posts called recent which are ok for me, but there is also six
   posts below which are called content posts. I want to put those six content post
   to different page. There is a link to the page [http://lightcraft.pl/2014/wpisy/](http://lightcraft.pl/2014/wpisy/)
   and I want to do it like here [http://lightcraft/2013](http://lightcraft/2013)

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

The topic ‘Loop problem’ is closed to new replies.

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)
 * [post per page](https://wordpress.org/support/topic-tag/post-per-page/)
 * [posts on page](https://wordpress.org/support/topic-tag/posts-on-page/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 4 replies
 * 2 participants
 * Last reply from: [Darnok017](https://wordpress.org/support/users/darnok017/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/loop-problem-5/#post-5081139)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
