Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

ACF Field Groups not showing when set to show on equal page filter #22

@mtthsnc

Description

@mtthsnc

When creating ACF Field Groups and setting the filter for instance as:

Show this field group if:
Page is equal to SELECTED_PAGE

The ACF field isn't queryable through the pageBy with uri. This is the example of the query I ran to find this issue:

{
  pageBy(uri: "live-act") {
    id
    artistCategory {
      category_video
    }
  }
}

Which returns the error:

{
  "errors": [
    {
      "message": "Cannot query field \"artistCategory\" on type \"Page\".",
      "category": "graphql",
      "locations": [
        {
          "line": 4,
          "column": 5
        }
      ]
    }
  ]
}

If one remove the filter and set it to display on all pages it is perfectly queryable in the GraphQL schema.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Location RulesIssues related to ACF Location Rules

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions