Exclude items in Query by ACF

Description:

I want to exclude 1 item in a query of CPT “reactie”. I created the CPT WITH field-group and added an id-field to it. Ideally I would exclude the highest id and show the rest. The one with the highest id is highlighted as “latest” somewhere else.

But when I try to exclude a post from this CPT using dynamic fields I can say to exclude id, but I can’t give the value of the id to it.

Or it is missing, or I misunderstand the solution. See screenshot below:

I expected something like with the visibility conditions:
image

Environment info

  • WordPress version: 6.4.3
  • Cwicly Plugin version: 1.4.1

When you reference the field, it will attempt to use that field to get the values from dynamically.

If you want to manually specify a post, just use the built in selection.

Alternatively, if you want to just exclude the latest post dynamically, you can order by published date descending and then specify an offset of 1 in the Pagination settings.

Screenshot 2024-02-26 at 13.02.58

1 Like

Thanks!!!
Wish I knew this earlier.

Extra kudo’s for you @StrangeTech

1 Like