How to set the number of query results for an ACF relationship field?

I have an ACF relationship field.

There are 4 related items. In the query loop, I only want to return 2.

When I select the query loop, I do not see an option to set the number of items to be returned (as when querying posts).

How can I set the number of items returned?

Hi @lbch ,

You can use the relationship field dynamic tag in the “Include” dropdown to set your desired posts_per_page.

Please check this example:

Regards,
Jenn

Thank you @itchycode , that resolved my issue.

Note: I also had to “Disable query merge”.

1 Like