Skip to content

Clone Fields Do not work Properly #151

@mude-albij

Description

@mude-albij

Description

I have same field Banner that are clone inside a flexible layout and article post type
When using graphql on these page with flexible layout and article

fields inside banner are dispaying null

Steps to reproduce

import fields

  1. create a new page and use banner inside the flexible layout fill the images and text fields
  2. create a new post and fill the banner content there as well
  3. query for page as
query page($url:ID!){
  page(id:$url,idType:URI){
    pageComponents{
      pageComponents{
        ... on PageComponentsPageComponentsBannerLayout{
          banner{
            title
            subTitle
            background{
              image{
                desktop{
                  node{
                    mediaItemUrl
                  }
                }
                mobile{
                  node{
                    mediaItemUrl
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

query for article as

query articles {
  posts {
    nodes {
      articles {
        banner {
          banner {
            banner {
              title
              subTitle
              background {
                image {
                  desktop {
                    node {
                      mediaItemUrl
                    }
                  }
                  mobile {
                    node {
                      mediaItemUrl
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

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

acf-export-2024-01-11.json.zip

Additional context

example for page
image
example for article
image

WPGraphQL Version

1.19.0

WPGraphQL For ACF Version

2.0.0

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

Pro

WordPress Version

6.4.2

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

No one assigned

    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