Skip to main content

Limiting the number of posts shown in your feed

Control how many posts show in your feed—set it from the dashboard or add 'per' to your embed code.

Written by Mario T.

Many users wish to display only a certain number of posts in their feed, followed by a "Load More" button. There are two ways to set this up.

Option 1: From the dashboard (recommended)

You can set the number of posts per page directly from your feed dashboard—no code changes needed.

From your feed dashboard:

  1. Open the Design settings

  2. Enter Templates sections

  3. Find the Posts Per Page field

  4. Enter the number of posts you want to show (e.g., 3)

  5. The change applies immediately to your embedded feed

⚠️ Note about Infinite scroll

If you set a low number of posts per page (e.g., 3) and your Pagination is set to Infinite, the feed may automatically load additional pages immediately—making it appear as if the limit isn't working. This happens because the feed tries to load more content whenever the bottom is visible, and with few posts the bottom is already in view.

To avoid this, switch your Pagination setting to Load More, Pages, or None when using a low posts-per-page value.

Option 2: Via embed code

You can also control the number of posts by adding the ?per= parameter directly to your embed code. This is useful if you want different post counts for different embeds of the same feed.

Example:

To limit the number of posts shown to 3, before a "Load More" button appears, add this to your embed code:

?per=3

If you are using our standard embed code, it will look like this:

<script type="text/javascript" src="https://www.juicer.io/embed/YOUR-JUICER-FEED-NAME/embed-code.js?per=3" async defer></script>

The iframe version of the Juicer code will appear like this:

<iframe src="https://www.juicer.io/api/feeds/YOUR-JUICER-FEED-NAME/iframe?per=3" frameborder="0" width="1000" height="1000"></iframe>

If you are using the WordPress shortcode, add a similar customization to the shortcode:

[juicer name="YOUR-FEED-NAME" per="3"]

Showing only a fixed number of posts (no pagination)

If you want to show a set number of posts with no way to load more, you can do this from the dashboard or via embed code.

From the dashboard: Set your desired Posts Per Page number in Template Settings, then set Pagination to None. The feed will show exactly that many posts with no Load More button or pagination controls.

Via embed code: Add ?pages=1 alongside your per parameter to limit the feed to a single page.

Like so:

<script type="text/javascript" src="https://www.juicer.io/embed/YOUR-JUICER-FEED-NAME/embed-code.js?per=3&pages=1" async defer></script>

iframe code behaves the same.

<iframe src="https://www.juicer.io/api/feeds/YOUR-JUICER-FEED-NAME/iframe?per=3&pages=1" frameborder="0" width="1000" height="1000"></iframe>

If you are using the WordPress shortcode, you can add a similar customization to the shortcode:

[juicer name="YOUR-FEED-NAME" per="3" pages="1"]

The YOUR-FEED-NAME should already be set to your unique feed ID.

🌱 This and many more easy code customizations you can find on our detailed Code customizations page.

Did this answer your question?