Title: Query Loop Repeating Itself
Last modified: July 6, 2022

---

# Query Loop Repeating Itself

 *  Resolved [Sy](https://wordpress.org/support/users/sy99/)
 * (@sy99)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/)
 * Hi there!
 * I’ve ran into a issue with the query loop. I’m creating a content block using
   Elements and displaying it on my posts page. The content is just the query loop
   showing the latest posts. On the backend all is good but when I look at it on
   the frontend the query loop has been repeated 5 times.
 * Any idea where I’m going wrong!?
 * Many thanks

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

 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-15803078)
 * Hi there,
 * Any chance you can provide the link to your posts page so we can have a better
   understanding of the issue?
 * Thanks!
 *  [ellismedia](https://wordpress.org/support/users/ellismedia/)
 * (@ellismedia)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-15837847)
 * I think you might have answered this question elsewhere Ying as I’ve been trying
   to understand this as well.
 * [https://generatepress.com/forums/topic/archive-page-with-query-loop-added-via-content-element-displays-posts-repeatedly/](https://generatepress.com/forums/topic/archive-page-with-query-loop-added-via-content-element-displays-posts-repeatedly/)
 * The content you build in Block element – Content template will apply to every
   post in the loop of your archive page as a template, that’s why it repeats.
 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-15843409)
 * If you add a query loop block in a block element – content template( a premium
   feature of GeneratePress theme), that will be the reason.
 * But I’ll still need to inspect your site to know what’s going on 🙂
    -  This reply was modified 3 years, 10 months ago by [ying](https://wordpress.org/support/users/yingscarlett/).
    -  This reply was modified 3 years, 10 months ago by [ying](https://wordpress.org/support/users/yingscarlett/).
 *  [benhamdam](https://wordpress.org/support/users/benhamdam/)
 * (@benhamdam)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16038004)
 * Im having this trouble too:
    [https://weserhalle.com/news/](https://weserhalle.com/news/)
 * Any advice?
    -  This reply was modified 3 years, 8 months ago by [benhamdam](https://wordpress.org/support/users/benhamdam/).
 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16038956)
 * Hi [@benhamdam](https://wordpress.org/support/users/benhamdam/)
 * 1. You are not using GB’s query loop block, it’s WP’s query loop block.
 * 2. You’ve added the WP’s query loop block inside a content template, that’s the
   reason why it repeats.
 * In the content template block element, there should only be one post template.
   You can not use a query loop block.
 * As the content template block element is a GP Premium feature, I’m not going 
   to talk about it more. If you have questions regarding this feature, please kindly
   open a support topic in GeneratePress’s premium support forum 🙂
 *  Thread Starter [Sy](https://wordpress.org/support/users/sy99/)
 * (@sy99)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16039059)
 * I found that going to: Settings > Reading then change the Blog pages show at 
   most to 1, that sorted the problem.
 * I think the GB query loop uses the number you enter in to ‘Blog pages show at
   most’ as the number of times it repeats the query loop.
 * Hope that makes sense!
 *  Plugin Support [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16040771)
 * Well, that could be a workaround. [@sy99](https://wordpress.org/support/users/sy99/)
 * But really, query loop block should NOT be used as a content template.
 *  [fernandoazarcon2](https://wordpress.org/support/users/fernandoazarcon2/)
 * (@fernandoazarcon2)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16311740)
 * Hi there! We haven’t heard back from you for a while now so we’re going to go
   ahead and set this topic as resolved. Feel free to reply if you need any more
   help.
 *  [benhamdam](https://wordpress.org/support/users/benhamdam/)
 * (@benhamdam)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16312049)
 * Whoops, please ignore
    -  This reply was modified 3 years, 5 months ago by [benhamdam](https://wordpress.org/support/users/benhamdam/).

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

The topic ‘Query Loop Repeating Itself’ is closed to new replies.

 * ![](https://ps.w.org/generateblocks/assets/icon.svg?rev=3239461)
 * [GenerateBlocks](https://wordpress.org/plugins/generateblocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/generateblocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/generateblocks/)
 * [Active Topics](https://wordpress.org/support/plugin/generateblocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/generateblocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/generateblocks/reviews/)

 * 9 replies
 * 5 participants
 * Last reply from: [benhamdam](https://wordpress.org/support/users/benhamdam/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/query-loop-repeating-itself/#post-16312049)
 * Status: resolved