Title: Wrong Posts per page count
Last modified: December 9, 2024

---

# Wrong Posts per page count

 *  Resolved [sparkis70](https://wordpress.org/support/users/sparkis70/)
 * (@sparkis70)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/)
 * Hi, I am running in a little issue with the AQL.
 * I have a loop displaying regular Posts as the main post type and an additional
   Custom Post Type (case studies).
   I have set the loop to display 3 posts per page
   but I end up with 6 items : 3 posts followed by 3 CPT
 * Is there a way to limit the overall number of items to X per page, main and additional
   post types combined?
 * Thanks in advance!

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

 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18188394)
 * Hi and thanks for using AQL!
 * Sorry you’re running into this! I am not able to replicate it locally at this
   point. Can you send me the settings you have in place for AQL?
 *  Thread Starter [sparkis70](https://wordpress.org/support/users/sparkis70/)
 * (@sparkis70)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18189659)
 * Hi,
 * Thanks you for the very fast response, here are some screens of the settings 
   applied to the AQL block :
 * Here is the block structure :
 * ![](https://i0.wp.com/alessiocapponi.com/AQL-1.png?ssl=1)
 * Here are the settings :
 * ![](https://i0.wp.com/alessiocapponi.com/AQL-2.png?ssl=1)
 * And here is the result in the front :
 * ![](https://i0.wp.com/alessiocapponi.com/AQL-3.png?ssl=1)
 * Thanks for the help!
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18193227)
 * I was able to reproduce this with a custom post type and standard posts. Can 
   you try Excluding sticky posts? That seemed to be the fix for me
 *  Thread Starter [sparkis70](https://wordpress.org/support/users/sparkis70/)
 * (@sparkis70)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18193247)
 * Hi,
 * Indeed that seems to fix the issue. I was hoping to display some sticky posts
   in the loop though.
   Going to try to find a work-around!
 * Thanks for the help
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18194956)
 * Glad to help! This is going to be an issue in general with Sticky posts and isn’t(
   to my knowledge) something that AQL has introduced. I’m going to close this out
   but please let me know if you run into any further issues!
 *  Plugin Author [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * (@welcher)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18201937)
 * Marking as resolved.

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

The topic ‘Wrong Posts per page count’ is closed to new replies.

 * ![](https://ps.w.org/advanced-query-loop/assets/icon-256x256.png?rev=3106826)
 * [Advanced Query Loop](https://wordpress.org/plugins/advanced-query-loop/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-query-loop/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-query-loop/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-query-loop/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-query-loop/reviews/)

## Tags

 * [Sticky posts](https://wordpress.org/support/topic-tag/sticky-posts/)

 * 6 replies
 * 2 participants
 * Last reply from: [Ryan Welcher](https://wordpress.org/support/users/welcher/)
 * Last activity: [1 year, 5 months ago](https://wordpress.org/support/topic/wrong-posts-per-page-count/#post-18201937)
 * Status: resolved