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 in the dashboard preview

If you set a low Posts Per Page (e.g., 3) with Pagination set to Infinite, the dashboard preview may show more than your configured number. It keeps loading posts until the preview pane is filled.

This is specific to the preview. On your live embedded feed, visitors will see the number of posts you configured, and more will load only as they scroll the page.

If you want the preview to match what visitors see, temporarily switch Pagination to Load More, Pages, or None while you verify the setting.

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?