wp-graphql / wp-graphql/wpgraphql-acf

When the WPGraphQL for ACF is active, it is not possible to bind the ACF field group to the Woocommerce product category

Open
#243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
110
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Description

When the WPGraphQL plugin for ACF is active, if you bind an ACF field group to a WooCommerce product category and then save the field group, the binding is reset to "Post taxonomy is equal to Uncategorized". This bug can only be overcome by temporarily disabling the WPGraphQL for ACF plugin until the field group is linked to the product category and by ACF page refresh

Steps to reproduce
  1. Enable WooCommerce, ACF PRO, WPGraphQL and WPGraphQL for ACF plugins
  2. Create Field Group and bind it to a product category via "Taxonomy is equal to Category (product_cat)"
  3. Click "Save Changes"
PHP or JSON export of the ACF Field Group(s)

No response

Additional context

image
image

WPGraphQL Version

1.27.2

WPGraphQL For ACF Version

2.2.0

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

Pro

WordPress Version

6.6.2

PHP Version

8.1.27

Additional enviornment details

Nuxt 3, WPGraphQL JWT Authentication 0.7.0, WPGraphQL WooCommerce (WooGraphQL) 0.20.0, WPGraphQL Content Blocks 4.2.0. However these plugins do not affect the problem, I checked

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No repository file or test is named in the report. Reproduce the issue with WooCommerce, ACF PRO, WPGraphQL, and WPGraphQL for ACF enabled, then compare the field-group binding before and after saving; the work is done when the product-category binding remains selected after saving and refreshing.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, php
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.