Logo Oxygen Builder How To

2 - Remove pagination for Repeater Queries in Oxygen Builder

Content

Description

The Repeater component in Oxygen Builder shows pagination out of the box when the WP Query type is set to custom with a fixed number of Posts per page for the Count (provided of course there are more entries to be shown).
Let’s take this example where we set 5 entries of a portfolio CPT (Custom Post Type) to be shown:

Custom configuration 

Oxy How To Oxygen Builder
Sample output on the frontend (with the entry title added inside the Repeater Div
Oxy How To Oxygen Builder
Let’s say the requirement is to show only 5 posts without the pagination.
To remove the pagination, display can be set to none in the CSS. But there is a better way than hiding stuff under the carpet.
Change the Query type to manual and append &no_found_rows=true to the Query Params.

Manual configuration 

Oxy How To
Setting no_found_rows to true will fetch exactly the specified number of posts from the database.
Oxy How To
You need to make sure the actual query part, post_type=portfolio posts_per_page=5 reflects what you wish to set.

Code


post_type=portfolio&posts_per_page=5&no_found_rows=true

You like me?
Take a second to support us on PayPal or Patreon!

Oxy How To Oxygen Builder
If you have any suggestions, please let us know
suggestions

You can share it on: