Title: Limit posts per session programatically
Last modified: June 19, 2019

---

# Limit posts per session programatically

 *  Resolved [TiagoPires](https://wordpress.org/support/users/tiasch/)
 * (@tiasch)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/limit-posts-per-session-programatically/)
 * Hi Sébastien,
 * I read the limit posts per session is coming up on the pro version which is awesome.
   I’m working on a project at the moment and I could not wait for this feature.
   I was wondering if there is a way to set it up programmatically using hooks, 
   constants or some other setup.
 * This has a great future, looking forward to v1.6.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/limit-posts-per-session-programatically/#post-11667477)
 * Hi [@tiasch](https://wordpress.org/support/users/tiasch/)
 * You might be interested in using the [snippet library](https://github.com/autoloadnextpost/alnp-code-snippet-library/blob/master/snippets/alnp-post-limit.js)
   I put together.
 * There is a way to limit the posts per session via JavaScript.
 * Hope that helps.

Viewing 1 replies (of 1 total)

The topic ‘Limit posts per session programatically’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/auto-load-next-post_ccaf26.svg)
 * [WordPress Infinite Scroll by Auto Load Next Post](https://wordpress.org/plugins/auto-load-next-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/auto-load-next-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/auto-load-next-post/)
 * [Active Topics](https://wordpress.org/support/plugin/auto-load-next-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/auto-load-next-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/auto-load-next-post/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/limit-posts-per-session-programatically/#post-11667477)
 * Status: resolved