# Editing posts per page on landing page

**URL:** <https://forum.ghost.org/t/editing-posts-per-page-on-landing-page/4658>\
**Category:** Developer help\
**Created:** [December 24, 2018, 5:51am UTC](https://forum.ghost.org/t/editing-posts-per-page-on-landing-page/4658 "2018-12-24T05:51:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TienSFU25](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@TienSFU25](https://forum.ghost.org/u/TienSFU25)\
**Post date:** [December 24, 2018, 5:51am UTC](https://forum.ghost.org/t/editing-posts-per-page-on-landing-page/4658/1 "2018-12-24T05:51:13Z")

</div>

This is on the vanilla Ghost install, using Casper.

I tried changing “posts\_per\_page” in Casper’s package.json to “5”, and ghost restarted, but the landing page (the one you see at localhost:2368) still shows the default 7 Ghost posts.

Am I missing something?

Thanks!

---

<div class="post-metadata">

**Author:** ![vikaspotluri123](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/vikaspotluri123/32/24_2.png) [@vikaspotluri123](https://forum.ghost.org/u/vikaspotluri123)\
**Post date:** [December 24, 2018, 6:01am UTC](https://forum.ghost.org/t/editing-posts-per-page-on-landing-page/4658/2 "2018-12-24T06:01:47Z")

</div>

Casper uses infinite scroll - when you scroll near the bottom of the page, the next set of posts will be loaded.

Without looking at your publication, it’s not really possible to see if the issue lies with the backend, but my guess is the remaining 2 posts are being pulled in and displayed before you notice. I tried it locally, and can see the layout change as the page loads

---

<div class="post-metadata">

**Author:** ![TienSFU25](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@TienSFU25](https://forum.ghost.org/u/TienSFU25)\
**Post date:** [December 24, 2018, 6:12am UTC](https://forum.ghost.org/t/editing-posts-per-page-on-landing-page/4658/3 "2018-12-24T06:12:48Z")

</div>

Ah so posts\_per\_page only affects the lazy load, not the amount ultimately displayed.

I’m guessing not all themes are designed to have infinite scroll? Or if I wanted to programmatically change this behavior in Casper, how much work do you think it will be?

(just a question in a vacuum, I think infinite scroll is fine for my purposes for now)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/b/ba9ce5100b8bb264586f4f572545596b2ce3f081.png) [@system](https://forum.ghost.org/u/system)\
**Post date:** [January 7, 2019, 6:13am UTC](https://forum.ghost.org/t/editing-posts-per-page-on-landing-page/4658/4 "2019-01-07T06:13:25Z")

</div>

Closed on January 7, 2019, 6:13am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
