Support

Account

Home Forums ACF PRO Add filter on the relationship field inside a group Reply To: Add filter on the relationship field inside a group

  • Hi, my filter works if I put the name of the relationship field.

    My problem is that I have many group fields with relationship fields inside all with the name “items” so the filter applies to all these fields.

    I want to apply the filter only to the group field with the name “link_scope_pages” and in particular to its relation subfield with the name “items”.

    From various topics such as wp_query I tried to use the group name “_” name of the subfield relationship “link_scope_pages_items” but this doesn’t work.
    Here is my problem.

    At the moment I solved it with the key name of the relationship subfield (it seems to be unique), but I wanted to know if there was a solution with the names or even putting conditions inside the filter.