Skip to content

Anchor tags are returning null for custom ACF blocksΒ #268

@brysonchiu

Description

@brysonchiu

I origonally opened this ticket, wp-graphql/wpgraphql-acf#204, but Jason Bahl directed me to open one here instead.

Steps to reproduce

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

Anchors work for core blocks, but not for ACF blocks

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: reproductionThis issue needs to be reproduced independently

    Type

    No type

    Projects

    Status

    βœ… Needs Reproduction

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions