-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cater for duplicate field names with different keys #16
Comments
In
|
What we see in the I believe I need to change the code such that the field name is actually the field's key. |
Having done this the HTML for the block is simplified
For the cloned field in the Layout group it becomes.
|
It would appear that the simplified version is only temporary; it's what's displayed in the Code Editor when in edit mode. When saved the data attribute is more complicated.
|
The value for the
It would be nice to be able to map the key back to the name given by the user.
Rather than |
While trying to develop PHPUnit tests for each field type I encountered a problem where the field name
Text
was being displayed for the wrong post type.Explanation
test-acf-fields
CPT, but I'd not yet changed the Layout group.Text
field being displayed was from the cloned group. Its key wasfield_64abd97b8ff80_field_64aa869f48df7
Proposed solution
TBC
The text was updated successfully, but these errors were encountered: