Comments (3)
Hi @vacas
Thanks for the .json export, this made it possible to diagnose the issue.
The problem you are experiencing is simply due to multiple fields using the same "name" and therefore saving over each other in the DB.
The clone field contains an important setting called "Prefix Name". This is needed to modify the "name" or the cloned fields and allow them to save unequally.
Using the .json example provided, all 3 flexible content fields clones into the "Three Column Container" are saving to the DB with the same name. This is why they all load using the value of the last saved field.
Please read over the clone field documentation and make use of the "Prefix Name" setting for each clone field making sure the clone fields also contain a unique name.
https://www.advancedcustomfields.com/resources/clone/
from acf.
Hi @vacas
Thanks for the bug report.
Can you please export these field groups to a .json file and attach to your reply?
- I'll import these locally and perform some testing.
My first thought is that the field name's are overwriting each other in the DB, but will need to review the field settings / DB results to be sure.
from acf.
Thanks for the quick reply, @elliotcondon!
Here are the fields:
acf-export-2018-05-07.json.zip
Since we've been working with the fields, I left the Three Column Container, instead of the Two Column Container from the previous example, but the result of the bug is still persisting, so this should work. I also included the other two components that is used within the example: the Content Box Component and the Write In Component. Lastly, there's another component I came up with that solves the problem for now, which is the Multiple Columns Container. Essentially, it's a repeater for Cloned components, just in case if you want to take a look into it.
Let me know if it works and if you need anything else!
from acf.
Related Issues (20)
- post-object field select2 'search' in wp-admin not returning results when on subsite of multisite HOT 1
- Changing field to not be required using `acf/prepare_field` fails validation HOT 2
- The save_post_terms array values assigned but not saved for bidirectional values
- Presence of fields on a post type breaks iframe editor, even when fields are positioned to the side HOT 1
- Multiple URLs and wrong canonical url with ACF custom post type and custom permalink HOT 1
- ACF Tab align left group display issue HOT 1
- The ACF API integration issue with attachments
- Only Preview mode is available in WP 6.5beta1 HOT 6
- potential infinite loop in acf_get_field_ancestors()
- Block fields now show in the right hand side panel HOT 1
- True/False field fold together and can't be changed/updated HOT 3
- When returning false in acf/load_field or acf/prepare_field multiple warnings occur HOT 1
- ACF post preview and revisions completely broken HOT 7
- WYSIWYG 'visual' tab in sidebar breaks when switching sidebar tabs HOT 1
- WYSIWYG Editor Field: Image element with width and height attributes triggers unsafe HTML error message HOT 4
- filter wysiwyg_tinymce_settings breaking HOT 1
- Front-end form submits itself when closing the wordpress link-edit dialogue
- Nested cloned repeater only works for 1 level
- Gallery - edit image breaks field in block sidebar HOT 1
- ACF 6.3.0 update breaks "No fields assigned" filter with empty string HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acf.