Go to Juicer

Juicer.io Support Center

Search for any help questions or topics.

Limiting the number of posts shown in your Juicer feed

Show fewer posts with or without “Load More” button
Avatar
Mario
Updated 1 month ago
Many users wish to display only a certain number of posts in their feed, followed by a "Load More" button. Juicer makes this simple.


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"]


If you do not want a “Load More” button to appear, you can add another customization that limits the feed to a single page. You will add:

?pages=1



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.


If you have any questions or need any help, please email us at hello@juicer.io.

 
Did this answer your question?
😞 😐 😃