Skip to content

Data not resolving when fields are assigned to a Page Template #110

@jasonbahl

Description

@jasonbahl

Description

When assigning an ACF Field Group to a field template, the fields return null.

Steps to reproduce

  1. create an ACF Field Group and have it set to "show in graphql"
  2. set the location rules of the ACF Field Group to be associated with a Page Template
  3. add some data to the page, populating the ACF Fields for the page template

CleanShot 2023-11-02 at 15 20 18

  1. query for the page, including the ACF Fields assigned to the template
  2. see null results

CleanShot 2023-11-02 at 15 23 55

I would expect to see data returned.

PHP or JSON export of the ACF Field Group(s)

No response

Additional context

No response

WPGraphQL Version

1.18.0

WPGraphQL For ACF Version

v2.0.0-beta.5.1.0

ACF (Advanced Custom Fields) Version. Free or Pro?

PRO, 6.2.2

WordPress Version

7.3

PHP Version

8.2

Additional enviornment details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for WPGraphQL, WPGraphQL For ACF, ACF, etc.

  • Yes
  • My issue is with compatibility with a specific WordPress plugin, and I have listed all my installed plugins (and version info) above.

Metadata

Metadata

Assignees

Labels

status: actionableReady for work to begintype: bugIssue that causes incorrect or unexpected behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions