Title: Protected posts affecting displayed posts_per_page
Last modified: August 22, 2016

---

# Protected posts affecting displayed posts_per_page

 *  [mcolli10](https://wordpress.org/support/users/mcolli10/)
 * (@mcolli10)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/protected-posts-affecting-displayed-posts_per_page/)
 * Hi,
    I’m displaying the latest 3 custom posts on the home page using query_posts()
   from about a 100 posts. If the 2 latest posts are protected (hidden from current
   logged in subscriber user) then only 1 post is displayed not the next 3 unprotected
   posts. Is there a way to exclude the protected posts from the post count calculation?
 * Regards
    Michael
 * [https://wordpress.org/plugins/contexture-page-security/](https://wordpress.org/plugins/contexture-page-security/)

The topic ‘Protected posts affecting displayed posts_per_page’ is closed to new 
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contexture-page-security_324aa9.svg)
 * [Page Security & Membership](https://wordpress.org/plugins/contexture-page-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contexture-page-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contexture-page-security/)
 * [Active Topics](https://wordpress.org/support/plugin/contexture-page-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contexture-page-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contexture-page-security/reviews/)

## Tags

 * [pagination](https://wordpress.org/support/topic-tag/pagination/)

 * 0 replies
 * 1 participant
 * Last reply from: [mcolli10](https://wordpress.org/support/users/mcolli10/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/protected-posts-affecting-displayed-posts_per_page/)
 * Status: not resolved