Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block anchor tags are returning null #204

Open
1 of 3 tasks
brysonchiu opened this issue May 9, 2024 · 2 comments
Open
1 of 3 tasks

Block anchor tags are returning null #204

brysonchiu opened this issue May 9, 2024 · 2 comments
Assignees
Labels
close candidate Needs confirmation before closing needs: reproduction This issue needs to be reproduced independently

Comments

@brysonchiu
Copy link

Description

Querying for the anchor attribute is returning null.

Steps to reproduce

  1. Create a ACF block type and enable anchor attribute in block type settings.
  2. Add the block to a page and include an anchor to the block.
query NewQuery {
  page(id: "/[PAGE-PATH]", idType: URI) {
    editorBlocks {
      ... on [BLOCK] {
        attributes {
          anchor
        }
      }
    }
  }
}

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

No response

Additional context

No response

WPGraphQL Version

1.25.0

WPGraphQL For ACF Version

2.2.0

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

Pro - 6.2.9

WordPress Version

6.5.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.
@josephfusco josephfusco added the needs: reproduction This issue needs to be reproduced independently label May 14, 2024
@MKlblangenois
Copy link

Same issue on my side. Have you any update @josephfusco @jasonbahl? Thanks!

@jasonbahl
Copy link
Contributor

jasonbahl commented Jul 15, 2024

WPGraphQL Core and WPGraphQL for ACF does not add editorBlocks or Block Types to the Schema.

I believe you are likely using WPGraphQL Content Blocks?

This issue should be solved within that codebase.

I would recommend opening this issue on the WPGraphQL Content Blocks repository and ideally provide as many steps to reproduce as possible, and include any actions you have taken to debug, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close candidate Needs confirmation before closing needs: reproduction This issue needs to be reproduced independently
Projects
None yet
Development

No branches or pull requests

4 participants